<xsl:fallback> |
Syntax: |
<xsl:fallback> </xsl:fallback> |
The xsl:fallback element is designed to provide fallback code that can be run as an alternative when an XSLT processor fails to support an element. |
Normally, when an XSLT element is not recognized by the XSLT processor an error occurs. The concept behind the xsl:fallback element is to provide a mechanism that will allow a procedure to keep running whenever an XSLT element is encountered that is not supported by an XSLT processor. |
For example, view these Microsoft proprietary elements. Undoubtedly, as XSLT becomes more mainstream, additional proprietary elements will become more common. A similar problem may also arise as newer and newer versions of XSLT become available and various elements are added or removed from the standard. |
In the future, it may become commonplace to use the xsl:fallback element as a means of insuring portability between different browsers and XSLT processors. This element has no attributes. This is not a self-closing element. The separate closing element is mandatory. |