QName function
The fn:QName function builds an expanded name from a namespace URI and a string that contains a lexical QName with an optional prefix.
Syntax
- URI
- The namespace portion of an expanded name.
URI has the xs:string data type, or is an empty string or sequence.
- QName
- A value that is the correct lexical form of The xs:QName.
QName data type has the xs:string data type.
Returned value
The returned value is an xs:QName value that is an expanded name with a namespace URI that is specified by URI, and the prefix and local name that is specified by QName.
The fn:QName function associates the namespace prefix of QName with the value of URI. If QName has a namespace prefix, URI cannot be a zero-length string or empty sequence. If QName has only a local name and no prefix, URI can be a zero-length string or empty sequence.
Example
fn:QName("http://www.mycompany.com", "comp:employee")The returned value is an xs:QName value with namespace URI of "http://www.mycompany.com", a prefix of "comp", and local name of "employee".
