Closed
Bug 431259
Opened 16 years ago
Closed 16 years ago
xml rendered as text when XSL stylesheet is in another folder
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 397894
People
(Reporter: aevargareg, Unassigned)
Details
Attachments
(5 files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9pre) Gecko/2008042606 Minefield/3.0pre I have used the techniques described for more than a year in Internet Explorer 7 and Firefox 2. I am not trying to perform XSL transformation, I merely want to open the XML document and have the stylesheet applied. This stylesheet is in a Common Files directory which several XML applications use. ----------------------------------------------------------------- Case 1 - This is how all of my documents are currently configured <?xml-stylesheet type="text/xsl" href="file://C:/Program Files/Varga/Common Files/standardul.xsl" ?> ----------------------------------------------------------------- Case 2 - This works in the nightly build, but not in the general beta <?xml-stylesheet type="text/xsl" href="file://C:/Internet/standardul.xsl" ?> ----------------------------------------------------------------- Case 3 - This works in both the nightly build and in the general beta <?xml-stylesheet type="text/xsl" href="standardul.xsl" ?> ----------------------------------------------------------------- Reproducible: Always Steps to Reproduce: 1. Create a document as C:/Internet/a.xml beginning with <?xml version="1.0" encoding="utf-8"?> 2. Enter next line as <?xml-stylesheet type="text/xsl" href="file://C:/AltFolder/b.xsl" ?> 3. Complete the document with valid, well-formed XML markup. 4. Create a second document as C:/AltFolder/b.xsl beginning with <?xml version="1.0" encoding="utf-8"?> 5. Enter the next line as <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> 6. Enter the next line as <xsl:output method="xml"/> 7. Complete the document with templates as well-formed XML markup. 8. Open a.xml in Firefox 3 Actual Results: Tag contents run together, stylesheet is not applied. Expected Results: Tag contents are parsed and formatted according to the stylesheet templates. WORKING VERSION ~~~~~~~~~~~~~~~ Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14 BROKEN VERSION ~~~~~~~~~~~~~~ Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9pre) Gecko/2008042606 Minefield/3.0pre INTERNET EXPLORER ~~~~~~~~~~~~~~~~~ Version: 7.0.5730.11 Build: 75730 Update Versions: 0 Additional resources checked: http://wiki.mozilla.org/Firefox3/Firefox_Requirements_Meetings/Content_Handling nothing specifically mentioned for straight XML http://www.dpawson.co.uk/xsl/sect2/N6145.html item 7 by Michael Kay The only type you can effectively use in an xml-stylesheet processing instruction at this time, however, is text/xsl, because that's all that the browsers will recognize, AFAIK. http://www.mail-archive.com/listdad@webstandardsgroup.org/msg08101.html transformations discussed, but nothing specifically for straight XML
Reporter | ||
Comment 1•16 years ago
|
||
Reporter | ||
Comment 2•16 years ago
|
||
Reporter | ||
Comment 3•16 years ago
|
||
Reporter | ||
Comment 4•16 years ago
|
||
Reporter | ||
Comment 5•16 years ago
|
||
standardul.xsl is the same in either folder, just different locations
Updated•16 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
Summary: xml rendered as text when stylesheet is in another folder → xml rendered as text when XSL stylesheet is in another folder
Reporter | ||
Comment 7•16 years ago
|
||
So what you are saying it that I can't use different collections of XML files in different folders (or even on different drives) that link to one another and access a common directory of stylesheets, images, etc. without setting up a local server (e.g. Apache) because of the similarity to the potential behavior of malicious files?
Comment 8•16 years ago
|
||
Pretty much. Note that images and CSS will work fine; it's just XSL that's same-origin.
Reporter | ||
Comment 9•16 years ago
|
||
I think I like the option of changing the configuration settings in FF3 better: https://bugzilla.mozilla.org/show_bug.cgi?id=397894#c6
You need to log in
before you can comment on or make changes to this bug.
Description
•