cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Perry Molendijk" <>
Subject DTD Declarations in the sitemap/serializers
Date Thu, 05 Dec 2002 04:06:09 GMT
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