Class ElemFallback

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

public class ElemFallback extends ElemTemplateElement
Implement xsl:fallback.
 invalid input: '<!'ELEMENT xsl:fallback %template;>
 invalid input: '<!'ATTLIST xsl:fallback %space-att;>
 
See Also:
  • Constructor Details

    • ElemFallback

      public ElemFallback()
  • Method Details

    • getXSLToken

      public int getXSLToken()
      Get an int constant identifying the type of element.
      Overrides:
      getXSLToken in class ElemTemplateElement
      Returns:
      The token ID for this element
      See Also:
    • getNodeName

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

      public void execute(TransformerImpl transformer) throws TransformerException
      This is the normal call when xsl:fallback is instantiated. In accordance with the XSLT 1.0 Recommendation, chapter 15, "Normally, instantiating an xsl:fallback element does nothing."
      Overrides:
      execute in class ElemTemplateElement
      Parameters:
      transformer - non-null reference to the the current transform-time state.
      Throws:
      TransformerException
    • executeFallback

      public void executeFallback(TransformerImpl transformer) throws TransformerException
      Execute the fallback elements. This must be explicitly called to instantiate the content of an xsl:fallback element. When an XSLT transformer performs fallback for an instruction element, if the instruction element has one or more xsl:fallback children, then the content of each of the xsl:fallback children must be instantiated in sequence; otherwise, an error must be signaled. The content of an xsl:fallback element is a template.
      Parameters:
      transformer - non-null reference to the the current transform-time state.
      Throws:
      TransformerException