Chapter 5. XPath Functions
XPath Function
boolean(), ceiling(), concat(), contains last(), local (), count(), false(), floor(), id(), lang(),-name(), name(), namespace-uri(), normalize-space(), not(), number(), position(), round(), starts-with(), string(), string-length(), substring(), substring-after(), substring-before(), sum(), translate(), true()
In Chapter 4 the principles underlying XPath were introduced, but the full value of XPath is limited without functions. Functions provide a “programming” aspect to XPath. Where XPath location paths and patterns are navigational tools, functions are like little programs, they do something. For example, the document() function “goes and gets” another XML instance, similar to an import macro in a word ...
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.
Read now
Unlock full access