 |
|
THE XML REVOLUTION - TECHNOLOGIES FOR THE FUTURE WEB
|
|
XPointer: Context initialization An XPointer is basically an XPath expression occurring in a URI. When evaluated, the initial context is defined as follows:
- the context node is the root node of the document
- the context position and size are both 1 (because
the root has no siblings)
- the variable bindings are empty (variables are not used by XPointer)
- the function library consists of the core XPath functions + a few extra functions
- the namespace declarations are set as follows:
xmlns(myprefix=http://mynamespace.org) xpointer(...)
Warning: several levels of character escaping occur when using
XPointer in XML documents
- in XPointer, unbalanced parentheses must be escaped, e.g. ^)
- in URIs, many characters must be escaped, e.g. %20
- in XML attribute values, quotes, ampersand, etc. must be
escaped, e.g. <
|
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. | |
|  |