You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Andrew Chamberlain <an...@comsine.co.uk> on 2008/07/03 14:22:39 UTC

XSLT Version?

Hi All,

Simple question, I hope.  How do I find out which version of XSLT I've 
got?  My version of Cocoon is: 2.1.10, if it's related to that.

Ultimately, I'd like to be using XSLT 2.0.

Thanks,

Andy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: XSLT Version?

Posted by Andy Stevens <in...@googlemail.com>.
2008/7/3 Andrew Chamberlain <an...@comsine.co.uk>:
> Hi All,
>
> Simple question, I hope.  How do I find out which version of XSLT I've got?

Try using some XSLT 2-only features in a pipeline and see if you get a
stack trace instead? ;-)

>  My version of Cocoon is: 2.1.10, if it's related to that.
>
> Ultimately, I'd like to be using XSLT 2.0.

Short answer is it depends :-)  The default XSL transformer in the
sample web app uses Xalan, which is XSLT 1.something, so that's
probably what you're using.  But you can change the configuration in
the cocoon.xconf to make it use Saxon instead, which supports 2.0 (or
just set up a second XSL transformer for Saxon and use whichever one
you need in any given pipeline).


Andy.
-- 
http://pseudoq.sourceforge.net/  Open source java Sudoku creator

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: XSLT Version?

Posted by Stan Dyck <st...@gmail.com>.
Andrew Chamberlain wrote:
> Hi All,
> 
> Simple question, I hope.  How do I find out which version of XSLT I've 
> got?  My version of Cocoon is: 2.1.10, if it's related to that.
> 
> Ultimately, I'd like to be using XSLT 2.0.
> 
> Thanks,
> 
> Andy
> 

Insert something like the following into a stylesheet:

<xsl:comment>
    <xsl:text>Version is: </xsl:text>
    <xsl:value-of select="system-property('xsl:version')"/>
</xsl:comment>


Hope this helps,
StanD.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org