Class XSLStylesheet

All Implemented Interfaces:
Source, SourceLocator, GroundedValue, Item, MutableNodeInfo, NamespaceResolver, NodeInfo, Sequence, Location, SteppingNode<NodeImpl>, 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

    • 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

      public 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