Re: problem self-referencing using document('') to reference parameters
Martin Honnen <[email protected]> Tue, 24 Apr 2007 17:49:32 +0200
| Newsgroups | gmane.comp.mozilla.devel.layout.xslt |
|---|---|
| Organization | Liberty Development |
| Message-ID | <[email protected]> |
[email protected] wrote: > The XSLT is created as a JavaScript string. > > var objParser = new DOMParser(); > var oXslDom = objParser.parseFromString(strXslt, "text/xml"); > > var oProcessor = new XSLTProcessor() > oProcessor.importStylesheet(oXslDom); > var oResultDom = oProcessor.transformToDocument(oXmlDom); > > Following is a working sample HTML page that shows the problem. Click > the Transform button to display the original XML document, the > original XSLT document and the result of the transform. The transform > simply copies the result of calling the XPath document('') function. > The function should return a copy of the XSLT document, but returns > the XML document. I think this is a bug, I have filed <https://bugzilla.mozilla.org/show_bug.cgi?id=378610> about that. -- Martin Honnen http://JavaScript.FAQTs.com/