functx:namespaces-in-use
A list of namespaces used in element/attribute names in an XML fragment
Description
The functx:namespaces-in-use function returns a list of all the namespaces used in element and attribute names in the scope of $root. It does not include namespaces that are declared but not used, or ones that are used in names that are the content (as opposed to the names) of elements or attributes.
Parameters |
Description |
---|---|
root:node() |
the root node to start from |
Examples
XPath |
Results |
Explanation |
---|---|---|
functx:namespaces-in-use($in-xml) |
(abc, ghi, xyz) |
def is not listed because it is not used in any names |
XPath |
Results |
---|---|
functx:namespaces-in-use($in-xml) |
(abc, ghi, xyz) |