XML technologies / XSLT / XSLT and XPath functions / Alphabetical XSLT and XPath reference / prefix-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:prefix-from-QName

Category:

Functions in connection with qualified identifiers (QNames)

Origin:

XPath 2.0

Return value:

The namespace prefix of xs:NCName type of the QName passed on.

Call/Arguments:

fn:prefix-from-QName($QName?)

$QName:

A xs:QName QName whose prefix shall be determined.

Purpose of use:

The fn:prefix-from-QName() function returns the prefix of a xs:QName QName passed on to it in the form of a xs:NCName. If the empty sequence is passed on to the function or the QName in question has no prefix portion, the function returns the empty sequence.

Function definition:

XPath 1.0:

The function is not available.

XPath 2.0:

fn:prefix-from-QName($arg as xs:QName?) as xs:NCName?

   

 

 

 

back to top