|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: what processor is using this stylesheet
"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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








