The resolve-QName() function returns a value of type xs:QName (that is, an expanded QName consisting of a namespace URI and a local name ), taking as input a lexical QName (a string in the form «prefix:local-name » or simply «local-name » ), by resolving the prefix used in the lexical QName against the in-scope namespaces of a given element node.
Argument | Data Type | Meaning |
---|---|---|
lexical-qname | xs:string | The lexical QName whose prefix is to be resolved. It must conform to the syntax of a QName as defined in the XML Namespaces specification (which is the same as the lexical space for an xs:QName defined in XML Schema) |
element | element() | An element node whose in-scope namespaces are to be used to resolve the namespace prefix used in the lexical QName |
Result | xs:QName | The expanded xs:QName , containing the namespace URI corresponding to the prefix supplied in the lexical QName |