How to execute XSLT 2.0 with ant ?

Posted by paulgreg on Stack Overflow See other posts from Stack Overflow or by paulgreg
Published on 2009-05-28T07:53:03Z Indexed on 2011/01/16 23:53 UTC
Read the original article Hit count: 211

Filed under:
|
|

I'm trying to run an XSLT transformation from an ant file.

I'm using a XSLT 2.0 stylesheet with a saxon 9 parser (supporting XSLT 2.0).

The problem is that it seems that ant is always calling an XSLT 1.0 parser.

Here's my ant file :

<xslt style="stylesheet.xslt"
   basedir="core/"    
   extension=".xml"
   destdir="core/"
   classpath="D:\\DevTools\\saxon\\bin\\saxon9.jar">
</xslt>

If I call it directly (without ant), it's working.

Any idea ?

© Stack Overflow or respective owner

Related posts about xslt

Related posts about ant