The function library defined in the XPath specification is available to XPointer processors. Several additional XPointer functions are also available.
XPointer adds point and range to the node of XPath, as explained earlier in the chapter. Because XPath lacks functions to operate on locations other than nodes, additional functions are required in XPointer to allow manipulation of non-node locations.
The range-to() function takes a single location-set argument and returns a range for each member of the location-set argument.
Suppose we had a document that included the fragment shown here:
<paragraph id="para1" number="1"> <!-- Some content goes here --> </paragraph> ...