Class NodeNameFn

  • All Implemented Interfaces:
    java.io.Serializable, javax.xml.transform.SourceLocator, LocationProvider, SaxonLocator, InstructionInfo, org.xml.sax.Locator

    public class NodeNameFn
    extends SystemFunction
    This class supports the name(), local-name(), and namespace-uri() functions from XPath 1.0, and also the XSLT generate-id() function
    See Also:
    Serialized Form
    • Constructor Detail

      • NodeNameFn

        public NodeNameFn()
    • Method Detail

      • evaluateItem

        public Item evaluateItem​(XPathContext c)
                          throws XPathException
        Evaluate the function
        Overrides:
        evaluateItem in class Expression
        Parameters:
        c - The context in which the expression is to be evaluated
        Returns:
        the node or atomic value that results from evaluating the expression; or null to indicate that the result is an empty sequence
        Throws:
        XPathException - if any dynamic error occurs evaluating the expression