Bug 40715
Summary: | xsltProcessor.transformToFragment returning NULL (in Safari, Chrome) | ||
---|---|---|---|
Product: | WebKit | Reporter: | Liam Foy <liamjfoy> |
Component: | XML | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | ap |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All | ||
URL: | https://zd1.zednax.com:9443/saxon_test/test.html |
Liam Foy
Hello,
The following code works in FireFox:
https://zd1.zednax.com:9443/saxon_test/test.html
and here are the XSL files:
https://zd1.zednax.com:9443/saxon_test/
The problem seems to be this line:
resultDocument = xsltProcessor.transformToFragment(xml,document);
in Safari 5 and Chrome.
We have also used saxon8 which correctly transforms on the command line.
If you require any more information please let us know!
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
*** This bug has been marked as a duplicate of bug 10313 ***
Liam Foy
I'll admit I don't fully understand the problem in 10313. This is a very old bug if related. Is there any work around?
Alexey Proskuryakov
The only workaround is to load the document to be transformed in a frame.
Alexey Proskuryakov
(or to not use xsl:import and document(), of course)