XML technologies / XSLT / XSLT and XPath functions / Alphabetical XSLT and XPath reference / namespace-uri-from-QName

(Excerpt from “XSLT 2.0 & XPath 2.0” by Frank Bongers, chapter 5, translated from German)

A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

fn:namespace-uri-from-QName

Category:

Functions in connection with qualified identifiers (QNames)

Origin:

XPath 2.0

Return value:

A xs:string string; the URI string being lexically of xs:anyURI type assigned to the namespace of the QName passed on.

Call/Arguments:

fn:namespace-uri-from-QName($qname?)

$qname:

Optional. An identifier of xs:QName type whose namespace URI string shall be determined as xs:anyURI.

Purpose of use:

The function returns the URI string of the namespace of a QName passed on to it after its expansion as xs:anyURI. If the QName expanded in this way has no namespace portion, a xs:anyURI URI string is returned which corresponds to the empty string. If the argument passed on is the empty sequence, the function returns an empty result sequence.

Function definition:

XPath 1.0:

The function is not available.

XPath 2.0:

fn:namespace-uri-from-QName($arg as xs:QName?) as xs:anyURI?

   

 

 

 

back to top