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 2.0 Functions and Operators

XPath 3.0 Functions and Operators