Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 71996 invoked by uid 500); 5 Dec 2002 04:08:30 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 71985 invoked from network); 5 Dec 2002 04:08:29 -0000 Message-ID: <005301c29c13$bbb30ae0$98a73bcb@inflexions> From: "Perry Molendijk" To: Subject: DTD Declaration in sitemap/serializers Date: Thu, 5 Dec 2002 12:06:47 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0050_01C29C56.C9368870" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------=_NextPart_000_0050_01C29C56.C9368870 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Blank =20 I'm sure there is a sensible explanation for this but I can't find it. = When I change: =20 to -//W3C//DTD HTML 4.01 = Transitional//EN = http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd ISO-8859-1 The resulting html output has the correct dtd declaration at the top of = the file: Now when I try this with the xml serializer that doesn't happen e.g. -//OASIS//DTD DocBook XML V4.2//EN = http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd I would like to see this: 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? Bye Perry Molendijk ------=_NextPart_000_0050_01C29C56.C9368870 Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Blank
 

 

 

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

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

to

<map:serializer name=3D"html" mime-type=3D"text/html"=20 src=3D"org.apache.cocoon.serialization.HTMLSerializer">
 =20 <doctype-public>-//W3C//DTD HTML 4.01=20 Transitional//EN</doctype-public>
 =20 <doctype-system>http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&l= t;/doctype-system>
 =20 <encoding>ISO-8859-1</encoding>
</map:serializer>

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.= org/TR/xhtml1/DTD/xhtml1-strict.dtd">

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

<map:serializer mime-type=3D"text/xml" name=3D"xml"=20 src=3D"org.apache.cocoon.serialization.XMLSerializer">
 =20 <doctype-public>-//OASIS//DTD DocBook XML=20 V4.2//EN</doctype-public>
 =20 <doctype-system>http://www.oasis-open.org/docbook/xml/4.2/docbookx.= dtd</doctype-system>
</map:serializer>

I would like to see this:

<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML=20 V4.2//EN"
          =     =20 "http://ww= w.oasis-open.org/docbook/xml/4.2/docbookx.dtd">

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

Bye

Perry Molendijk

------=_NextPart_000_0050_01C29C56.C9368870--