Hi, Dave. "Dave Brosius" <[EMAIL PROTECTED]> wrote on 2008-02-08 06:42:13 PM: > Some further snooping reveals, that i am using the > com.sun.org.apache.xpath.internal.jaxp.XPathFactoryImpl > > factory, even tho i have xalan.jar on my path. Further when i set this > > System.setProperty("javax.xml.xpath.XPathFactory", "org. > apache.xpath.jaxp.XPathFactoryImpl"); > > I still am getting the sun factory. > > I am assuming this is the root of the problem. How do i get the > apache one? I even set the property on the cmd line to no avail.
XPathFactory allows for different factories based on the input data model. I believe the actual system property you set should be: System.setProperty("javax.xml.xpath.XPathFactory:" +XPathConstants.DOM_OBJECT_MODEL, "org.apache.xpath.jaxp.XPathFactoryImpl"); Also, is xalan.jar merely on your class path or have you used the Java endorsed standards override mechanism? See [1] for more information. Thanks, Henry [1] http://xml.apache.org/xalan-j/faq.html#faq-N100EF ------------------------------------------------------------------ Henry Zongaro XSLT Processors Development IBM SWS Toronto Lab T/L 313-6044; Phone +1 905 413-6044 mailto:[EMAIL PROTECTED]