[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Opera's JavaScript API for XSLT?

Subject: Re: Opera's JavaScript API for XSLT?
From: Robert Koberg <rob@xxxxxxxxxx>
Date: Wed, 27 Sep 2006 07:41:48 -0400
js xsl transformation in opera
Michael(tm) Smith wrote:
Note that lack of support for the XSLT document() function in
Opera's implementation is a known issue.



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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.