Class ElemWhen

All Implemented Interfaces:
Serializable, SourceLocator, XSLTVisitable, PrefixResolver, ExpressionNode, WhitespaceStrippingElementMatcher, Document, Element, Node, NodeList

public class ElemWhen extends ElemTemplateElement
Implement xsl:when.
 invalid input: '<!'ELEMENT xsl:when %template;>
 invalid input: '<!'ATTLIST xsl:when
   test %expr; #REQUIRED
   %space-att;
 >
 
See Also:
  • Constructor Details

    • ElemWhen

      public ElemWhen()
      Constructor ElemWhen
  • Method Details

    • 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:
    • compose

      public void compose(StylesheetRoot sroot) throws 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:
      TransformerException
    • getNodeName

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