In HTML, we can create hyperlinks that either points to an
HTML page or to a bookmark inside an HTML page (using #).
Sometimes it is more useful to point to more specific contents.
For example, let's say that we want to link to the third item in
the particular list, or to the second sentence of the fifth
paragraph. This is the easy one with XPointer.
If the hyperlink points to an XML documents, we can add an
XPointer part after the URL in the xlink:href attribute, to
navigate (with an XPath expression) to a specific place in the
documents.
For example, in the example below we use XPointer to point to
the fifth item in the list with a unique id of "rock":
|