Subject: Re: Let the XSLT script detect the name and release of the used XSLT processor?
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Thu, 10 Dec 2009 08:40:54 +0000
|
2009/12/10 Ben Stover <bxstover@xxxxxxxxxxx>:
> When I apply an XSLT script on an input.xml I want to output at first a node
(into
> the result,xml) which shows the used XSLT processor and his release.
>
> So the putput should be something like
>
> <?xml .....>
> <usedxsltproc>Saxon v9.1.0.7</usedxsltproc>
> <otherstuff>
> .....
> </otherstuff>
>
>
> Is this somehow possible?
yep - have a look at: http://www.w3.org/TR/xslt20/#system-property
and then do something like:
<xsl:value-of select="system-property('xsl:vendor')"/>
...and/or with a mix of product name and version.
cheers
--
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/
|