Bugs: Browse | Submit New | Admin

[#21615] xsl:output does not respect omit-xml-declaration="yes"

Date:
2008-08-20 04:16
Priority:
3
Submitted By:
Albert Davidson Chou (al_chou)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
xsl:output does not respect omit-xml-declaration="yes"

Detailed description
When I declare

<xsl:output method="html" omit-xml-declaration="yes" />

my output still has the <?xml version="1.0"?> declaration at the beginning.

Add A Comment: Notepad

Please login


Followup

Message
Date: 2008-12-25 17:58
Sender: Morus Walter

Seems the bug tracker does not like urls.
So you'll have to reconstruct them.
aid=23352&
amp;group_id
means
aid=23352&group_id
of course.

If that does not work, simply use the tracker link in the second
level nagivation and choose patches. There are not many.
Date: 2008-12-25 17:53
Sender: Morus Walter

try 
http://rubyforge.org/tracker/index.php?func=detail&aid=23352&
amp;group_id=495&atid=1969

note that you might also need 
http://rubyforge.org/tracker/index.php?func=detail&aid=23351&
amp;group_id=494&atid=1973
and probably
http://rubyforge.org/tracker/index.php?func=detail&aid=23349&
amp;group_id=494&atid=1973
for libxml.
You should be able to restrict the changes to the dump/save methods
but the patch contains a few further changes regarding parse
options for stylesheets.

All patches are against svn head.

Date: 2008-12-25 15:56
Sender: Albert Davidson Chou

I haven't been able to locate patch 23352 either by browsing
or searching the bug tracker here, nor by searching various
other areas of this project.  Could you provide a direct URL
to it?
Date: 2008-12-25 15:18
Sender: Morus Walter

An XSLT transform result cannot simply be dumped like an xml
tree if you want output declarations respected (the output
declarations are part of the stylesheet not of the result tree).

See patch #23352 (seem I cannot attach a file together with a
comment, otherwise I would have done that here.)

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
summaryxsl:output does not respect omit-xml-declaration="yes"2008-12-25 15:56al_chou