[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Opera's JavaScript API for XSLT?
Michael(tm) Smith wrote:
Note that lack of support for the XSLT document() function in OK. That is where it is failing. The debug info I received for the failure is at the end of the email. Is document() going to be added at some point? My use case is that in some transformations I use a configuration or simple stub ('<x/>') XML file as the main source and pull in other files based on the config or parameters. This way you get around loading a big dom in JS and only load a processor optimized dom for the transformation. If you want to check out the dojo implementation, you would need to get the trunk from SVN (or wait till .4 comes out, which should be soon). In the dojo/tests/xml/ directory you will find test_XslTransform.html which has 3 example transformations. The first one uses the document function and therefore fails. The other two do not use document() and work as expected. I will let the dojo folks know about the document() limitation. thanks, -Rob Debug info: FATAL exception raised: NOT_SUPPORTED_ERR Backtrace: Line 132 of linked script file://localhost/C:/workspace/dojo/src/xml/XslTransform.js var resultDoc = xsltProcessor.transformToFragment(xmlDoc, parentDoc); Line 145 of linked script file://localhost/C:/workspace/dojo/src/xml/XslTransform.js content = getMozillaResultStr(xmlDoc, params, parentDoc); Line 158 of linked script file://localhost/C:/workspace/dojo/src/xml/XslTransform.js var content = this.getResultString(xmlDoc, params, parentDoc); Line 39 of inline#2 script in file://localhost/C:/workspace/dojo/tests/xml/test_XslTransform.html simpleProc.transformToRegion(siteXmlDom, params, region, document); Line 1 of script loadRegion(); At unknown location [statement source code not available] xsltUri: simple.xsl
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|