XSLT <xsl: fallback> element
Definition and Usage
The <xsl: fallback> element specifies the alternate code when XSL processor does not support XSL elements, you are running.
grammar
<xsl:fallback>
<!-- Content: template -->
</xsl:fallback>
<!-- Content: template -->
</xsl:fallback>
Attributes
no
Example 1
In this case it was supposed to use a fictional <xsl: loop> loops through each element "title" element. If the XSL processor does not support this element (it does not support), then use <: xsl: for-each> element instead:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="catalog/cd">
<xsl:loop select="title">
<xsl:fallback>
<xsl:for-each select="title">
<xsl:value-of select="."/>
</xsl:for-each>
</xsl:fallback>
</xsl:loop>
</xsl:template>
</xsl:stylesheet>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="catalog/cd">
<xsl:loop select="title">
<xsl:fallback>
<xsl:for-each select="title">
<xsl:value-of select="."/>
</xsl:for-each>
</xsl:fallback>
</xsl:loop>
</xsl:template>
</xsl:stylesheet>
Complete XSLT Element Reference Manual