functx:distinct-attribute-names
The distinct names of all attributes in an XML fragment
Description
The functx:distinct-attribute-names function returns the distinct set of attribute names that exist on nodes in $nodes or their descendants.
Parameters |
Description |
---|---|
nodes:node() |
the root to start from |
Examples
XPath |
Results |
---|---|
functx:distinct-attribute-names($in-xml) |
(‘a1’, ‘a2’, ‘a3’) |