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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--