Author: jbeard Date: Sat Jun 19 05:57:02 2010 New Revision: 956189 URL: http://svn.apache.org/viewvc?rev=956189&view=rev Log: Rhino front-end now generating code again. Not using the most efficient Java APIs for transformation, though.
Modified: commons/sandbox/gsoc/2010/scxml-js/branches/browser-tests.1.ie/lib/js/requirejs/require/xml.js commons/sandbox/gsoc/2010/scxml-js/branches/browser-tests.1.ie/src/javascript/scxml/cgf/main.js Modified: commons/sandbox/gsoc/2010/scxml-js/branches/browser-tests.1.ie/lib/js/requirejs/require/xml.js URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-js/branches/browser-tests.1.ie/lib/js/requirejs/require/xml.js?rev=956189&r1=956188&r2=956189&view=diff ============================================================================== --- commons/sandbox/gsoc/2010/scxml-js/branches/browser-tests.1.ie/lib/js/requirejs/require/xml.js (original) +++ commons/sandbox/gsoc/2010/scxml-js/branches/browser-tests.1.ie/lib/js/requirejs/require/xml.js Sat Jun 19 05:57:02 2010 @@ -82,11 +82,12 @@ //FIXME: this is actually a rhino-specific API, so maybe we should switch on something like isRhino, rather than isBrowser var File = java.io.File; var DocumentBuilderFactory = javax.xml.parsers.DocumentBuilderFactory; + var dbf = DocumentBuilderFactory.newInstance(); + dbf.setNamespaceAware(true); require.fetchXML = function (url, callback) { var file = new File(url); - var dbf = DocumentBuilderFactory.newInstance(); var db = dbf.newDocumentBuilder(); var doc = db.parse(file); Modified: commons/sandbox/gsoc/2010/scxml-js/branches/browser-tests.1.ie/src/javascript/scxml/cgf/main.js URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-js/branches/browser-tests.1.ie/src/javascript/scxml/cgf/main.js?rev=956189&r1=956188&r2=956189&view=diff ============================================================================== --- commons/sandbox/gsoc/2010/scxml-js/branches/browser-tests.1.ie/src/javascript/scxml/cgf/main.js (original) +++ commons/sandbox/gsoc/2010/scxml-js/branches/browser-tests.1.ie/src/javascript/scxml/cgf/main.js Sat Jun 19 05:57:02 2010 @@ -41,6 +41,7 @@ require.def("src/javascript/scxml/cgf/ma function parseXMLFromPath(path){ var file = new java.io.File(path); var dbf = javax.xml.parsers.DocumentBuilderFactory.newInstance(); + dbf.setNamespaceAware(true); var db = dbf.newDocumentBuilder(); var doc = db.parse(file); return doc;