Is it possible to access the Xalan transformation engine for version 1.0 stylesheets and the Saxon transformation engine for version 2.0 stylesheets. I have an existing implementation running 1.0 stylesheets in Xalan. I need to add support for version 2.0 stylesheets using Saxon while keeping the Xalan 1.0 support intact.
Do I need to open the stylesheet file, access the stylesheet version, and then access either the class net.sf.saxon.dom.DocumentBuilderFactoryImpl() or the class org.apache.crimson.jaxp.DocumentBuilderFactoryImpl() depending on the stylesheet version?
Everything I've read so far regarding TrAX and JAXP is how to configure a system property to reference one or the other engine to run in the Java process.
Is there a recommended strategy?