fn:namespace-uri-for-prefix
Returns the namespace URI corresponding to a given prefix, using the namespaces that are in scope for a given element.
namespace-uri-for-prefix($prefix as xs:string?, $element as element()) ➔ xs:anyURI?
Arguments | |||
| $prefix | xs:string? | The supplied prefix |
| $element | element() | The element node whose in-scope namespaces are to be examined |
Result | xs:anyURI? |
Namespace
http://www.w3.org/2005/xpath-functions
Links to W3C specifications
XPath 3.1 Functions and Operators
Saxon availability
Available in XPath 2.0, XSLT 2.0, XQuery 1.0, and later versions. Available in all Saxon editions.