only for RuBoard |
xsl:fallback attempts to use future implementations or extensions that the processor might not be able to currently implement.
None.
Given the following XML instance document, links.xml :
<?xml version="1.0" encoding="utf-8" ?> <links> <link id="newriders" URL="http://www.newriders.com" name="NewRiders.com" description="Available books by New Riders" /> </links>
The following stylesheet uses a newer version than the current processor has implemented, 1.1 (recall that the current version is 1.0). A new element is also added, bogus , to show what happens if the processor cannot process an extension:
<?xml version="1.0" encoding="UTF-8" ?> <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <head> <body> <xsl:bogus> <xsl:fallback> Oops, the parser does not recognize the bogus element. </xsl:fallback> </xsl:bogus> </body> </head> </xsl:template> </xsl:stylesheet>
This results in the following markup:
<?xml version="1.0" encoding="UTF-16"?> <head><body> Oops, the parser doesn't recognize the "bogus" element. </body></head>
Any element where the content is a template.
Any element that can occur in a template.
only for RuBoard |