cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Perry Molendijk" <>
Subject Re: DTD Declaration in sitemap/serializers
Date Fri, 06 Dec 2002 01:12:11 GMT
BlankOK it's in the FAQs, sorry. But is there a way to generate an XML document that does add
a DTD Declaration?

  ----- Original Message ----- 
  From: Perry Molendijk 
  Sent: Thursday, December 05, 2002 12:06 PM
  Subject: DTD Declaration in sitemap/serializers

  I'm sure there is a sensible explanation for this but I can't find it. When I change:

  <map:serializer name="html" mime-type="text/html" src="org.apache.cocoon.serialization.HTMLSerializer"/>


  <map:serializer name="html" mime-type="text/html" src="org.apache.cocoon.serialization.HTMLSerializer">
    <doctype-public>-//W3C//DTD HTML 4.01 Transitional//EN</doctype-public>

  The resulting html output has the correct dtd declaration at the top of the file:

  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">

  Now when I try this with the xml serializer that doesn't happen e.g.

  <map:serializer mime-type="text/xml" name="xml" src="org.apache.cocoon.serialization.XMLSerializer">
    <doctype-public>-//OASIS//DTD DocBook XML V4.2//EN</doctype-public>

  I would like to see this:

  <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"

  I noticed the same behaviour with the "svgxml" serializer which leads me to believe that
this is a feature of the XMLSerializer. Is there a way to generate XML output with a DTD declaration
in it?


  Perry Molendijk

View raw message