Question

I have a JSP which attaches a XSL to an XML document pulled from a database. The application is using the Saxon Parser but my XML needs to use the Xalan one. Can a JSP page override which parser to use?

Was it helpful?

Solution

Instead of using TransformerFactory which was using the default (Saxon) I am using the class TransformerFactoryImpl which is specfic to Xalan. All seems to be working.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top