Closed Bug 404240 Opened 17 years ago Closed 17 years ago

XSLT is not processed when the XML file (which link to it) and the XSLT itself are stored locally (file:///)

Categories

(Core :: XSLT, defect)

x86
Linux
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 397894

People

(Reporter: linuxadmin, Unassigned)

References

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b1) Gecko/2007110903 Firefox/3.0b1 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b1) Gecko/2007110903 Firefox/3.0b1 XSLT is not processed when the XML file (which link to it) and the XSLT itself are stored locally (file:///). the problem doesn't occur when SAME files are accessed via http:// Reproducible: Always Steps to Reproduce: i've tried my website 1. goto http://www-stud.uni-due.de/~seivsevc/__xml__/sitemap.xml - works! 2. download this xml and '../framework.xsl' (and the .dtd if you like) 3. doesn't work anymore Actual Results: only the naked content is seen, XSLT not applied Expected Results: al content displayed correctlry, XSLT applied Linux acid 2.6.24-rc3-my #1 Sat Nov 17 22:55:28 CET 2007 i686 athlon i386 GNU/Linux opensuse 10.3 KDE
Version: unspecified → Trunk
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
Depends on: 397894
Component: General → XSLT
Product: Firefox → Core
QA Contact: general → xslt
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago17 years ago
Resolution: --- → DUPLICATE
Addtional info about this bug: I get this error: XML Parsing Error: Location: file:///D:/docs/my/stuff/site/mySite/contents/more/content/more/xml/file.xml Line Number 2, Column 1:<?xml-stylesheet type="text/xsl" href="../../../../styles/style.xsl"?> ^ The browser cannot find/parse the stile sheet, when it is located in another subfolder of the root folder or in any other case when the XSLT file is not located in the same folder as the XML file. This bug occurs when the files are stored locally. This workes in IE and Firefox 2
> I add pref("security.fileuri.origin_policy",3); at the end an effectively the > things come back as usual. I set the pref to false and it now works. But how should I make my offline xml only site if other less knowledgeable people should view it, so not such changes to the config. are needed? At least why doesn't Firefox show an advice what the problem might be? It looks as if there is a browser or xslt bug!
After all if we have multiple subdirectories we want to have just one style sheet for all files.
You need to log in before you can comment on or make changes to this bug.