xsl:output omit-xml-declaration="no" does not create an XML declaration

RESOLVED FIXED in mozilla1.9alpha1

Status

()

Core
XSLT
RESOLVED FIXED
12 years ago
11 years ago

People

(Reporter: Martin Honnen, Assigned: peterv)

Tracking

Trunk
mozilla1.9alpha1
x86
Windows XP
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

12 years ago
In the XSLT newsgroup there was a complaint that Mozilla's XSLT processor does not generate an XML declaration with output method xml:
<http://groups.google.com/group/mozilla.dev.tech.xslt/browse_frm/thread/82126090626f502f/34052abecbc660b5?hl=en#34052abecbc660b5>

I have made two test cases, one using script here:
<http://home.arcor.de/martin.honnen/mozillaBugs/xslt/xslOutputOmitXmlDeclaration1.html>
That test case runs transformToDocument twice, the first time with omit-xml-declaration="no", the second time with omit-xml-declaration="yes", serializing the result documents with XMLSerializer. Both result documents do not have an XML declaration.

The second test case uses an xml-stylesheet pi here:
<http://home.arcor.de/martin.honnen/mozillaBugs/xslt/test2006071201.xml>

If you choose "Save page as" -> "as complete web page" then Mozilla saves you the result of the XSLT transformation but there is no XML declaration in the saved document.

The problem occurs with both Firefox 1.5 release as well as with trunk nightlies.
(Assignee)

Comment 1

12 years ago
Created attachment 229231 [details] [diff] [review]
v1
Assignee: xslt → peterv
Status: NEW → ASSIGNED
Attachment #229231 - Flags: superreview?(bugmail)
Attachment #229231 - Flags: review?(bugmail)
Attachment #229231 - Flags: superreview?(bugmail)
Attachment #229231 - Flags: superreview+
Attachment #229231 - Flags: review?(bugmail)
Attachment #229231 - Flags: review+
(Assignee)

Updated

12 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9alpha
You need to log in before you can comment on or make changes to this bug.