Previous | Next | Indexes
adultinternetusers > Tutorials > XSLT 2.0 Tutorial > Use When (2/2) >

Use-when for compatibility

Attribute use-whenCan be very useful in writing stylesheets for several XSLT processors.

XSLT

      <xsl:stylesheet
                  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                  version="2.0">
            <xsl:output  method="xml"
                        indent="yes"
                        omit-xml-declaration="yes"/>

            <xsl:template  match="/aaa">
                  <v>
                        <xsl:value-of  select="system-property('xsl:product-name')"/>
                  </v>
                  <saxon-extensions-can-be-used  xsl:use-when="system-property('xsl:product-name')='SAXON'"/>
                  <xalan-extensions-can-be-used  xsl:use-when="system-property('xsl:product-name')='XALAN'"/>
            </xsl:template>

      </xsl:stylesheet>
XML

      <aaa  x="3"/>
Output

      <v>SAXON</v>
      <saxon-extensions-can-be-used/>


Previous chapter: Errors
Next chapter: Collations
Previous page: Use-when attribute
Next page: - - -

Kevin Carr in Stanton

Natural Skin Care and European Soaps
TickTalk 5
city of stanton
internetusers


You can also get Organic Skin Care products from Bliss Bath Body and you must check out their Natural Body Lotions and bath soaps

Now if you are looking for the best deals on surf clothing from Quiksilver and Roxy then you have to check these amazing deals here:

Hey, check out this Organic Skin Care European Soaps along with Natural Lavender Body Lotion and shea butter

and we can get surf t shirts surfing shirt and And you must check out this website swim suit swimming suit and swim trunks