Class XSLStylesheet

All Implemented Interfaces:
Source, SourceLocator, ActiveSource, GroundedValue, Item, MutableNodeInfo, NamespaceResolver, NodeInfo, Sequence, Location, SteppingNode, SiblingCountingNode, Locator

public class XSLStylesheet extends XSLModuleRoot
An xsl:stylesheet or xsl:transform element in the stylesheet.
Note this element represents a stylesheet module, not necessarily the whole stylesheet. However, much of the functionality (and the fields) are relevant only to the top-level module.
  • Constructor Details

    • XSLStylesheet

      public XSLStylesheet()
  • Method Details

    • initialise

      public void initialise(NodeName elemName, SchemaType elementType, AttributeMap atts, NodeInfo parent, int sequenceNumber)
      Description copied from class: ElementImpl
      Initialise a new ElementImpl with an element name
      Overrides:
      initialise in class ElementImpl
      Parameters:
      elemName - Integer representing the element name, with namespaces resolved
      elementType - the schema type of the element node
      atts - The attribute list: always null
      parent - The parent node
      sequenceNumber - Integer identifying this element within the document
    • mayContainParam

      protected boolean mayContainParam()
      Description copied from class: StyleElement
      Determine whether this type of element is allowed to contain an xsl:param element
      Overrides:
      mayContainParam in class StyleElement
      Returns:
      true if this element is allowed to contain an xsl:param
    • prepareAttributes

      protected void prepareAttributes()
      Prepare the attributes on the stylesheet element
      Specified by:
      prepareAttributes in class StyleElement
    • validate

      public void validate(ComponentDeclaration decl) throws XPathException
      Validate this element
      Overrides:
      validate in class StyleElement
      Parameters:
      decl - Not used
      Throws:
      XPathException - if any error is found during validation