Class XSLParam

  • All Implemented Interfaces:
    Binding, NodeInfo, javax.xml.transform.dom.DOMLocator, javax.xml.transform.Source, javax.xml.transform.SourceLocator, org.w3c.dom.Element, org.w3c.dom.NamedNodeMap, org.w3c.dom.Node, org.xml.sax.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 Detail

      • XSLParam

        public XSLParam()
    • Method Detail

      • 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 javax.xml.transform.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:
        javax.xml.transform.TransformerConfigurationException
      • process

        public void process​(Context context)
                     throws javax.xml.transform.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:
        javax.xml.transform.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