The function namespace-uri-for-prefix() returns the namespace URI corresponding to a given namespace prefix, in the in-scope namespaces of a particular element node.
Argument | Data Type | Meaning |
---|---|---|
prefix | xs:string | The namespace prefix whose corresponding namespace URI is required, or the zero-length string to get the default namespace URI |
element | element() | The element node to be examined to find an in-scope namespace declaration for this prefix |
Result | xs:string? | The namespace URI corresponding to the given prefix |