On loading a local xml file (file://.../test.xml), a refernced xsl stylesheet can not be loaded.
If it's loaded from a web server the xsl file is loaded and transformation takes place correctly: http://adx.elektronengehirn.net/test/chrome-bug_local-xsl-transformation/test.xml
Steps to Reproduce:
Download attached files test.xml and test.xsl and save in same directory.
Load test.xml in Chromium (file://.../test.xml)
Loading the referenced xsl file and transform the xml data to HTML.
Build Date & Platform:
Chromium: 5.0.375.125 (Developer Build 53311) Ubuntu 10.04
User Agent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.125 Safari/533.4
I recognized this first in an Chromium version a few months ago.
This bug did not occur in certain older versions:
- Iron 3.? under Windows
- Iron 4.? under Ubuntu 9
Created attachment 62769 [details]
test.xml and test.xsl for reproducing the bug.
I think that it's intentional in some ports of WebKit that file:// documents cannot load resources from file:// (as a defense from malicious code that users saved to local files from the Web). It might have been driven primarily by a desire to limit XMLHttpRequest, but XSLT is not all that different.
Thanks for the report. You're running to this issue:
This is a non-standard setting that Chrome uses for WebKit to mitigate some attacks from malicious local files. You might want to post this information to that bug so that the folks working on a solution take your perspective into account.
Actually, i see that that bug has been locked for comments. I'll add the information to the bug for you.