On Tue, 5 Mar 2002 [EMAIL PROTECTED] wrote:

> I want to use Cocoon to generate XHTML pages that pass the validation test
> at W3C. Unfortunately, Cocoon (or rather, the XML Serializer in Xerces, if
> I understand the interdependencies correctly) always emits a doctype
> declaration likes this:
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "DTD/xhtml1-transitional.dtd">
>
> while the W3C validator insists on having one like this:
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "DTD/xhtml1-transitional.dtd">
>

This works for me --
    <map:serializer name="xhtml" mime-type="text/html"
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-syst
em>
    <omit-xml-declaration>no</omit-xml-declaration>
    <encoding>UTF-8</encoding>
    <indent>1</indent>


-- 
Akber Choudhry
Dyanet Inc.
http://www.dyanet.com/


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to