Skip to Content
Special Edition Using XML, Second Edition
book

Special Edition Using XML, Second Edition

by - et al. David Gulbransen
July 2002
Intermediate to advanced
864 pages
22h 32m
English
Que
Content preview from Special Edition Using XML, Second Edition

XPointer Function Extensions to XPath

The function library defined in the XPath specification is available to XPointer processors. Several additional XPointer functions are also available.

Location Set Functions

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

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> ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

XML Pocket Reference, 3rd Edition

XML Pocket Reference, 3rd Edition

Simon St. Laurent, Michael Fitzgerald
Essential XML: Beyond Markup

Essential XML: Beyond Markup

Don Box, Aaron Skonnard, John Lam

Publisher Resources

ISBN: 078972748XPurchase book