saxon:unescape-NCName
Reverses the escaping performed by the saxon:escape-NCName
function.
unescape-NCName($input as xs:NCName) ➔ xs:string
Arguments | |||
| $input | xs:NCName | The escaped string to be converted back to its original form |
Result | xs:string |
Namespace
http://saxon.sf.net/
Saxon availability
Requires Saxon-PE or Saxon-EE. Implemented since Saxon 11.
Notes on the Saxon implementation
Available since Saxon 11.
Details
If the supplied string is valid according to the escaping rules of the saxon:escape-NCName
function, then the original string is returned.
For example:
saxon:unescape-NCName(xs:NCName("_"))
returns""
saxon:unescape-NCName(xs:NCName("__"))
returns"_"
saxon:unescape-NCName(xs:NCName("phone_20_number"))
returns"phone number"
If the string is invalid according to these rules, a dynamic error is raised (FORG0001).
Hex digits a-f may be uppercase or lowercase, and leading zeroes are accepted in hex codepoint values.