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

Re: Getting ant to tell me which xslt processor is use

Subject: Re: Getting ant to tell me which xslt processor is used
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Wed, 24 Sep 2008 18:27:11 +0200
Re:  Getting ant to tell me which xslt processor is use
Jonathan Robie wrote:

   <xsl:message name="System info:">
       <xsl:text>XSLT Processor: </xsl:text>
       <xsl:value-of select="system-property('xsl:vendor')" />
       <xsl:value-of select="system-property('xsl:product-name')" />
       <xsl:value-of select="system-property('xsl:product-version')" />
   </xsl:message>


Generates messages like these:


[xslt] /home/jrobie/project/WWW/XML/Group/qtspecs/style/strip.xsl:41:70: Warning! XSL Property not supported: xsl:product-name
[xslt] /home/jrobie/project/WWW/XML/Group/qtspecs/style/strip.xsl:42:73: Warning! XSL Property not supported: xsl:product-version
[xslt] /home/jrobie/project/WWW/XML/Group/qtspecs/style/strip.xsl:38:18: Warning! XSLT Processor: Apache Software Foundation


Any way to get rid of the Warning!s?

Unfortunately XSLT 1.0 only supports the property xsl:vendor so you will need to check
<xsl:text>XSLT Processor: </xsl:text>
<xsl:value-of select="system-property('xsl:vendor')" />
<xsl:if test="system-property('xsl:version') = '2.0'">
<xsl:value-of select="system-property('xsl:product-name')"/>
<xsl:value-of select="system-property('xsl:product-version')"/>
</xsl:if>



--


	Martin Honnen
	http://JavaScript.FAQTs.com/

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.