 |
|
THE XML REVOLUTION - TECHNOLOGIES FOR THE FUTURE WEB
|
|
XPointer: Why, what, and how?
- an extension of XPath which is used by XLink to locate remote link resources
- relative addressing: allows links to places with no anchors
- flexible and robust: XPointer/XPath expressions
often survive changes in the target document
- can point to substrings in character data and to whole tree fragments
Example of an XPointer:
URI
-----------------------------------------------------------------
/ \
http://www.foo.org/bar.xml#xpointer(article/section[position()<=5])
| \ /|
| ---------------------------- |
\ XPointer expression /
\ /
-----------------------------------
XPointer fragment identifier
|
(points to the first five section elements in the article root element.)
In HTML, fragment identifiers may denote anchor IDs - XPointer
generalizes that.
|
COPYRIGHT © 2000-2003
ANDERS MØLLER & MICHAEL I. SCHWARTZBACH
|
|
| | Copyright© 1998-2004 All Rights Reserved. No portion of this site may be reproduced or redistributed without prior written permission from VistaEdge Technologies
All registered trademarks appearing on this site are the property of their respective owners. Java is a trademark or registered trademark of Sun Microsystems, Inc. in the United States and other countries. This site is not connected to Sun Microsystems, Inc. and is not sponsored by Sun Microsystems, Inc. | |
|  |