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
Thats it. Now your web module will run with saxon xml/xsl and you can work with all the cool XSL 2.0 functions.