Home : Tutorials : XML and Related Technologies


to the main page about the tutorial  THE XML REVOLUTION  -  TECHNOLOGIES FOR THE FUTURE WEB back up next

XPointer fragment identifiers

An XPointer fragment identifier (the substring to the right of # in the URI) is either
  • the value of some ID attribute in the document (ID attributes are specified by the schema),

  • a sequence of element numbers denoting the path from the root to an element (e.g. /1/27/3), or

  • a sequence of the form

        xpointer(...) xpointer(...) ...

    containing a list (typically of length 1) of XPointer expressions.

    Each expression is evaluated in turn, and the first where evaluation succeeds is used. (This allows alternative pointers to be specified thereby increasing robustness.)

Recently, the XPointer spec has been split into four (tiny) parts:

Next: We will now look into XPath and then later describe what additional features XPointer adds to XPath...

back COPYRIGHT © 2000-2003 ANDERS MØLLER & MICHAEL I. SCHWARTZBACH next


Home : Tutorials : XML and Related Technologies

 

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.