xsl-list
[Top] [All Lists]

Re: [xsl] Let the XSLT script detect the name and release of the used XSLT processor?

2009-12-10 03:41:18
2009/12/10 Ben Stover <bxstover(_at_)yahoo(_dot_)co(_dot_)uk>:
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/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>