cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 30824] New: - xml serializer reorders xml content
Date Tue, 24 Aug 2004 13:29:39 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30824>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30824

xml serializer reorders xml content

           Summary: xml serializer reorders xml content
           Product: Cocoon 2
           Version: 2.1.5
          Platform: Other
               URL: http://localhost:8888
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: sitemap components
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: losneanu@yahoo.com


xml serializer places <!DOCTYPE> after the comment in the source file.

Source:
=======
<!--
Comment
 -->
<html>
<head></head>
</html>

Result:
=======
<?xml version="1.0" encoding="UTF-8"?><!--
Comment
 --><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head></head>
</html>


This is what I used in my sitemap.xmap file:

<map:serializers default="xhtml">
<map:serializer logger="sitemap.serializer.xhtml" mime-type="text/html"
name="xhtml" src="org.apache.cocoon.serialization.XMLSerializer">
<doctype-public>-//W3C//DTD XHTML 1.1//EN</doctype-public>
<doctype-system>http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd</doctype-system>
<encoding>UTF-8</encoding>
</map:serializer>
</map:serializers>

Mime
View raw message