Using Points
-
Locations aren't always nodes
XPath is great for a lot of things, but it returns node-sets, not positions in a document. Since hypertext creators aren't always going to be using well-formed nodelike endpoints, there's a gap between XPath's capabilities and XPointer's needs.
-
Start points
When you want a point which is at the beginning of a node or range, you can use the start-point function:
xpointer(start-point(//slides/slide%5B5%5D/title))
.
-
End points
When you want a point which is at the end of a node or range, you can use the end-point function:
xpointer(end-point(//slides/slide%5B5%5D/title))
Previous Page <
TOC
> Next Page