[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: what processor is using this stylesheet

Subject: Re: what processor is using this stylesheet
From: Steve Tinney <stinney@xxxxxxxxxxxxx>
Date: Fri, 17 Mar 2000 12:06:03 -0500
setting xsl vendor
"Carole E. Mah" wrote:
> However, test="system-property('xsl:vendor')='saxon'" does not seem to
> work

You need to determine the xsl:vendor string using a test file and then
apply that in your real tests.  This could be modularized so that one
could say:

	<xsl:import href="vendors.xsl"/>
        <xsl:variable name="vendor">
          <xsl:call-template name="set-vendor"/>
        </xsl:variable>

and in vendors.xsl:

<xsl:template name="set-vendor">
  <xsl:variable name="xsl-vendor"
                select="system-property('xsl:vendor')"/>
  <xsl:choose>
    <xsl:when test="contains($xsl-vendor,'SAXON')">
      <xsl:text>saxon</xsl:text>
    </xsl:when>
    <xsl:when test="contains($xsl-vendor,'Clark')">
      <xsl:text>xt</xsl:text>
    </xsl:when>
    <xsl:otherwise>
      <xsl:text>UNKNOWN VENDOR</xsl:text>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>

(untested, except for some vendor id probing)

 Steve


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.