xsl:fallback

only for RuBoard

xsl:fallback

xsl:fallback attempts to use future implementations or extensions that the processor might not be able to currently implement.

Attributes

None.

Example

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> 

Parent Elements

Any element where the content is a template.

Child Elements

Any element that can occur in a template.

only for RuBoard


XML and ASP. NET
XML and ASP.NET
ISBN: B000H2MXOM
EAN: N/A
Year: 2005
Pages: 184

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net