Class XSLAttributeSet

    • Constructor Detail

      • XSLAttributeSet

        public XSLAttributeSet()
    • Method Detail

      • isDeclaration

        public boolean isDeclaration()
        Ask whether this node is a declaration, that is, a permitted child of xsl:stylesheet (including xsl:include and xsl:import).
        Overrides:
        isDeclaration in class StyleElement
        Returns:
        true for this element
      • getAttributeSetName

        public StructuredQName getAttributeSetName()
        Get the name of this attribute set
        Returns:
        the name of the attribute set, as a QName
      • getInstruction

        public AttributeSet getInstruction()
        Get the compiled code produced for this XSLT element
        Returns:
        the compiled AttributeSet
      • incrementReferenceCount

        public void incrementReferenceCount()
        Increment the number of references found to this attribute set
      • prepareAttributes

        public void prepareAttributes()
                               throws XPathException
        Description copied from class: StyleElement
        Set the attribute list for the element. This is called to process the attributes (note the distinction from processAttributes in the superclass). Must be supplied in a subclass
        Specified by:
        prepareAttributes in class StyleElement
        Throws:
        XPathException - if a static error is detected
      • getObjectName

        public StructuredQName getObjectName()
        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.
        Specified by:
        getObjectName in interface InstructionInfo
        Overrides:
        getObjectName in class StyleElement
        Returns:
        the name of the object declared in this element, if any
      • validate

        public void validate​(Declaration decl)
                      throws XPathException
        Description copied from class: StyleElement
        Check that the stylesheet element is valid. This is called once for each element, after the entire tree has been built. As well as validation, it can perform first-time initialisation. The default implementation does nothing; it is normally overriden in subclasses.
        Overrides:
        validate in class StyleElement
        Parameters:
        decl - the declaration to be validated
        Throws:
        XPathException - if any error is found during validation
      • checkCircularity

        public void checkCircularity​(XSLAttributeSet origin)
                              throws XPathException
        Check for circularity: specifically, check that this attribute set does not contain a direct or indirect reference to the one supplied as a parameter
        Parameters:
        origin - the place from which the search started
        Throws:
        XPathException - if an error is found