Class XSLAttributeSet

All Implemented Interfaces:
Serializable, Source, SourceLocator, LocationProvider, SaxonLocator, PullEvent, Container, FingerprintedNode, Item<NodeInfo>, MutableNodeInfo, NamespaceResolver, NodeInfo, ValueRepresentation<NodeInfo>, StylesheetProcedure, InstructionInfo, SiblingCountingNode, Locator

public class XSLAttributeSet extends StyleElement implements StylesheetProcedure
An xsl:attribute-set element in the stylesheet.
See Also:
  • Constructor Details

    • XSLAttributeSet

      public XSLAttributeSet()
  • Method Details

    • 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
    • getSlotManager

      public SlotManager getSlotManager()
      Get details of stack frame
      Specified by:
      getSlotManager in interface StylesheetProcedure
      Returns:
      the associated SlotManager object
    • compileDeclaration

      public void compileDeclaration(Executable exec, Declaration decl) throws XPathException
      Compile the attribute set
      Overrides:
      compileDeclaration in class StyleElement
      Parameters:
      exec - the Executable
      decl - this attribute set declaration
      Throws:
      XPathException - if a failure is detected
    • optimize

      public void optimize(Declaration declaration) throws XPathException
      Optimize the stylesheet construct
      Specified by:
      optimize in interface StylesheetProcedure
      Parameters:
      declaration - this attribute set declaration
      Throws:
      XPathException
    • getConstructType

      public int getConstructType()
      Get the type of construct. This will be a constant in class Location. This method is part of the InstructionInfo interface
      Specified by:
      getConstructType in interface InstructionInfo
      Overrides:
      getConstructType in class StyleElement
      Returns:
      an integer identifying the kind of construct