Closed Bug 497309 Opened 16 years ago Closed 16 years ago

XSL transformation is not performed on XML file from the internet

Categories

(Firefox :: File Handling, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: jos, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b4pre) Gecko/20090401 Ubuntu/9.04 (jaunty) Shiretoko/3.5b4pre Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b4pre) Gecko/20090401 Ubuntu/9.04 (jaunty) Shiretoko/3.5b4pre No XSL transformation is applied to the file at the url above. However, if the file (and http://richardlight.org.uk/freddy.xsl) are put in a local folder and opened, freddy.xml is translated. If the local file has extension html instead of xml it is also not translated by freddy.xsl. So location of the file and extension of the file influence whether the file is translated or not. Reproducible: Always Steps to Reproduce: 1. Download http://richardlight.org.uk/freddy.xsl and http://richardlight.org.uk/freddy.xml 2. Open local freddy.xml 3. Copy freddy.xml to freddy.html 4. Compare rendering of freddy.xml and freddy.html Actual Results: Files do not render in the same way. Expected Results: Files render in the same way.
You can only do xsl transforms on xml files. freddy.xml is being served with an incorrect mime type of text/html. When you copy it to a local folder firefox must guess the mime type from the extension and that's why it works there.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.