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

XPath Functions

Version 1 of the XPath Recommendation provides a Core Function Library. The various functions provided in that library are described in this section.

XPath functions can return a data type that is one of the four XPath data types—node-set, boolean, string, or number.

Context Functions

Context functions say something specifically about the current context or in relation to the current context as a starting point.

The last() Function

The last() function is typically used in a predicate within a location path. It selects the last node in the current node list.

<Result> 
<First>John Doe</First>
<Second>Jane Doe</Second>
<Third>Robert Kennedy</Third>
</Result>

If the result element node was the context node and the path expression ...

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