Class XSLParam

All Implemented Interfaces:
Binding, NodeInfo, DOMLocator, Source, SourceLocator, Element, NamedNodeMap, Node, Locator

public class XSLParam extends XSLGeneralVariable implements Binding
An xsl:param elements in the stylesheet.
The xsl:param element has mandatory attribute name and optional attribute select
  • Constructor Details

    • XSLParam

      public XSLParam()
  • Method Details

    • getSlotNumber

      public int getSlotNumber()
      Description copied from interface: Binding
      Determine a slot number for the variable.
      Specified by:
      getSlotNumber in interface Binding
    • validate

      public void validate() throws TransformerConfigurationException
      Description copied from class: StyleElement
      Check that the 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 XSLGeneralVariable
      Throws:
      TransformerConfigurationException
    • process

      public void process(Context context) throws TransformerException
      Description copied from class: StyleElement
      Process: called to do the real work of this stylesheet element. This method must be implemented in each subclass.
      Specified by:
      process in class StyleElement
      Parameters:
      context - The context in the source XML document, giving access to the current node, the current variables, etc.
      Throws:
      TransformerException
    • getDataType

      public int getDataType()
      Get the data type, if known statically.
      Specified by:
      getDataType in interface Binding
      Returns:
      Value.ANY, because the data type of a parameter is never known in advance
    • constantValue

      public Value constantValue()
      Get the value, if known statically.
      Specified by:
      constantValue in interface Binding
      Returns:
      null, because the value of a parameter is never known in advance