ok,
I found it. I will supersede the definition in the root sitemap.xmap:

<map:serializer logger="sitemap.serializer.html" mime-type="text/html" name="html" pool-grow="4" pool-max="32" pool-min="4" src="org.apache.cocoon.serialization.HTMLSerializer">

<doctype-public>-//W3C//DTD HTML 4.01 Transitional//EN</doctype-public>

</doctype-system>
</map:serializer>

with my own definition in my application sitemap.xmap:

<map:serializer logger="sitemap.serializer.html" mime-type="text/html" name="html" pool-grow="4" pool-max="32" pool-min="4" src="org.apache.cocoon.serialization.HTMLSerializer">

-//W3C//DTD XHTML 1.0 Transitional/EN</doctype-public>

</doctype-system>
</map:serializer>

If this is incorrect please advise.

many thanks in return

On 8 Mar 2004, at 16:54, beyaNet Consultancy wrote:

Hi,
when viewing the source of my html pages they have an HTML 4 DTD:

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

I want my page to render with an XHTML DTD being specified at the top of the page when I view the source:

<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional/EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

How dod I do this?

many thanks in advance

Reply via email to