Class ElemWhen

    • Constructor Detail

      • ElemWhen

        public ElemWhen()
        Constructor ElemWhen
    • Method Detail

      • setTest

        public void setTest​(XPath v)
        Set the "test" attribute. Each xsl:when element has a single attribute, test, which specifies an expression.
        Parameters:
        v - Value to set for the "test" attribute.
      • getTest

        public XPath getTest()
        Get the "test" attribute. Each xsl:when element has a single attribute, test, which specifies an expression.
        Returns:
        Value of the "test" attribute.
      • getXSLToken

        public int getXSLToken()
        Get an integer representation of the element type.
        Overrides:
        getXSLToken in class ElemTemplateElement
        Returns:
        An integer representation of the element, defined in the Constants class.
        See Also:
        Constants
      • compose

        public void compose​(StylesheetRoot sroot)
                     throws javax.xml.transform.TransformerException
        This function is called after everything else has been recomposed, and allows the template to set remaining values that may be based on some other property that depends on recomposition.
        Overrides:
        compose in class ElemTemplateElement
        Throws:
        javax.xml.transform.TransformerException
      • getNodeName

        public java.lang.String getNodeName()
        Return the node name.
        Specified by:
        getNodeName in interface org.w3c.dom.Node
        Overrides:
        getNodeName in class ElemTemplateElement
        Returns:
        The node name