« Imixs Workflow API... | Main | JEE5 EAR EJB Deplyom... »

Glassfis: Using saxon XSL Processor instat of xerces

Glassfish Application server provides an Xerces XSL Processor. This processor did only support XSL 1.0 but no XSL 2.0 which comes with a lot of additional functions.

So in a Web Application which is doing some XML/XSL transformation the xerces processor will be used per default. To change this behavior you can simply copy the saxon processor into the /lib folder of your web module.

Or if you are using maven add the following dependency into your pom.xml

<dependency>
<groupId>net.sf.saxon</groupId>
<artifactId>saxon</artifactId>
<version>8.7</version>
</dependency>

Thats it. Now your web module will run with saxon xml/xsl and you can work with all the cool XSL 2.0 functions.