fn:prefix-from-QName

Returns the prefix component of the supplied QName.

Signature

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

Properties

This function is deterministic, context-independent, and focus-independent.

Rules

If $arg is the empty sequence the function returns the empty sequence.

If $arg has no prefix component the function returns the empty sequence.

Otherwise, the function returns an xs:NCName representing the prefix component of $arg.