Class XSLGeneralVariable

    • Constructor Detail

      • XSLGeneralVariable

        public XSLGeneralVariable()
    • Method Detail

      • getSourceBinding

        public SourceBinding getSourceBinding()
        Get the source binding object that holds information about the declared variable.
        Returns:
        the binding object
      • getObjectName

        public StructuredQName getObjectName()
        Description copied from class: StyleElement
        Get a name identifying the object of the expression, for example a function name, template name, variable name, key name, element name, etc. This is used only where the name is known statically. If there is no name, the value will be null.
        Overrides:
        getObjectName in class StyleElement
        Returns:
        the name of the object declared in this element, if any
      • mayContainSequenceConstructor

        protected boolean mayContainSequenceConstructor()
        Determine whether this type of element is allowed to contain a template-body
        Overrides:
        mayContainSequenceConstructor in class StyleElement
        Returns:
        true: yes, it may contain a template-body
      • isGlobal

        public boolean isGlobal()
        Test whether this is a global variable or parameter
        Returns:
        true if this is global
      • validate

        public void validate​(ComponentDeclaration decl)
                      throws XPathException
        Check that the variable is not already declared, and allocate a slot number
        Overrides:
        validate in class StyleElement
        Parameters:
        decl - the declaration being validated. A single XSLVariableDeclaration object may represent multiple declarations if it appears in a stylesheet module that is included/imported more than once
        Throws:
        XPathException - if any error is found during validation
      • postValidate

        public void postValidate()
                          throws XPathException
        Hook to allow additional validation of a parent element immediately after its children have been validated.
        Overrides:
        postValidate in class StyleElement
        Throws:
        XPathException - if any error is found during post-traversal validation