Class LocalVariable

  • All Implemented Interfaces:
    javax.xml.transform.SourceLocator, Binding

    public class LocalVariable
    extends GeneralVariable
    Handler for local xsl:variable elements in stylesheet. Not used in XQuery. In fact, the class is used only transiently in XSLT: local variables are compiled first to a LocalVariable object, and subsequently to a LetExpression.
    • Constructor Detail

      • LocalVariable

        public LocalVariable()
    • Method Detail

      • evaluateVariable

        public ValueRepresentation evaluateVariable​(XPathContext c)
                                             throws XPathException
        Evaluate the variable
        Parameters:
        c - the XPath dynamic evaluation context
        Returns:
        the result of evaluating the variable
        Throws:
        XPathException - if an error occurs while evaluating the variable