[ http://issues.apache.org/jira/browse/COCOON-1242?page=all ]
Jörg Heinicke closed COCOON-1242. --------------------------------- Resolution: Won't Fix This should be posted for the Xalan project - if it has not been fixed yet there. > XML serializer puts DOCTYPE after initial XML comments > ------------------------------------------------------ > > Key: COCOON-1242 > URL: http://issues.apache.org/jira/browse/COCOON-1242 > Project: Cocoon > Issue Type: Bug > Components: - Components: Sitemap > Affects Versions: 2.1.5 > Environment: Operating System: All > Platform: Other > Reporter: Emilian LOSNEANU > Assigned To: Cocoon Developers Team > Priority: Minor > > 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> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira