|
From: Andres M. <amo...@us...> - 2007-01-15 21:10:40
|
Update of /cvsroot/fieldling/Fieldling/src/fieldling/quilldriver/xml In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv20768/src/fieldling/quilldriver/xml Modified Files: XPathUtilities.java Log Message: Fixed java 6.0 not loading saxon for xpath. Uncommented lines purportedly going to a properties file that isn't implemented yet (as far as I can tell). Uncommenting this lines did the trick. Index: XPathUtilities.java =================================================================== RCS file: /cvsroot/fieldling/Fieldling/src/fieldling/quilldriver/xml/XPathUtilities.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** XPathUtilities.java 10 Sep 2005 18:57:03 -0000 1.3 --- XPathUtilities.java 14 Jan 2007 02:22:16 -0000 1.4 *************** *** 15,19 **** //"javax.xml.xpath.XPathFactory:http://java.sun.com/jaxp/xpath/dom" // Following is specific to Saxon: should be in a properties file ! /*System.setProperty("javax.xml.xpath.XPathFactory:"+net.sf.saxon.om.NamespaceConstant.OBJECT_MODEL_SAXON, "net.sf.saxon.xpath.XPathFactoryImpl"); System.setProperty("javax.xml.xpath.XPathFactory:"+javax.xml.xpath.XPathConstants.DOM_OBJECT_MODEL, --- 15,19 ---- //"javax.xml.xpath.XPathFactory:http://java.sun.com/jaxp/xpath/dom" // Following is specific to Saxon: should be in a properties file ! System.setProperty("javax.xml.xpath.XPathFactory:"+net.sf.saxon.om.NamespaceConstant.OBJECT_MODEL_SAXON, "net.sf.saxon.xpath.XPathFactoryImpl"); System.setProperty("javax.xml.xpath.XPathFactory:"+javax.xml.xpath.XPathConstants.DOM_OBJECT_MODEL, *************** *** 22,26 **** "net.sf.saxon.xpath.XPathFactoryImpl"); System.setProperty("javax.xml.xpath.XPathFactory:"+net.sf.saxon.om.NamespaceConstant.OBJECT_MODEL_XOM, ! "net.sf.saxon.xpath.XPathFactoryImpl");*/ //System.setProperty("javax.xml.xpath.XPathFactory", "net.sf.saxon.xpath.XPathFactoryImpl"); /* The following more general code should work, but it doesn't. --- 22,26 ---- "net.sf.saxon.xpath.XPathFactoryImpl"); System.setProperty("javax.xml.xpath.XPathFactory:"+net.sf.saxon.om.NamespaceConstant.OBJECT_MODEL_XOM, ! "net.sf.saxon.xpath.XPathFactoryImpl"); //System.setProperty("javax.xml.xpath.XPathFactory", "net.sf.saxon.xpath.XPathFactoryImpl"); /* The following more general code should work, but it doesn't. |