Class EscapeNCName

  • All Implemented Interfaces:
    Callable, Function, GroundedValue, Item, Sequence

    public class EscapeNCName
    extends SystemFunction
    The saxon:escape-NCName function takes an arbitrary string and converts it to an NCName. Characters that are not legal in an NCName are converted to the form _xxxx_. A zero length string is converted to a single underscore. An underscore is converted to a pair of underscores. The conversion can be reversed using saxon:unescape-NCName;
    • Constructor Detail

      • EscapeNCName

        public EscapeNCName()
    • Method Detail

      • call

        public StringValue call​(XPathContext context,
                                Sequence[] arguments)
                         throws XPathException
        Evaluate this function call at run-time
        Parameters:
        context - The XPath dynamic evaluation context. Not used in this case
        arguments - The values of the arguments to the function call.
        Returns:
        The escaped NCName
        Throws:
        XPathException - if lazy evaluation of the supplied argument fails