Class ElemFallback

    • Constructor Detail

      • ElemFallback

        public ElemFallback()
    • Method Detail

      • 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:
        Constants
      • 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 Element's name
      • execute

        public void execute​(TransformerImpl transformer)
                     throws javax.xml.transform.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:
        javax.xml.transform.TransformerException
      • executeFallback

        public void executeFallback​(TransformerImpl transformer)
                             throws javax.xml.transform.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:
        javax.xml.transform.TransformerException