The XPath Node Set Functions
The following XPath functions work on node sets:
count(node-set ). This function returns the number of nodes in a node set.
id(string ID ). This function returns a node set of the element whose ID matches the string passed to the function, or an empty node set if no element matches.
last(). This function returns the number of nodes in a node set.
local-name(node-set ). This function returns the local name of the first node in the node set.
name(node-set ). This function returns the qualified name of the first node in the node set.
namespace-uri(node-set ). This function returns the URI of the namespace of the first node in the node set.
position(). This function returns the position of the context node in the context node ...
Get Inside XSLT now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.