cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niels van Kampenhout <n.vankampenh...@hippo.nl>
Subject Re: Serving up XHTML?
Date Wed, 11 Oct 2006 13:13:17 GMT
Hi,

Derek Hohls wrote:
> Using Cocoon 2.1.7.... I need to serve up a "plain" XHTML page with:
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
>   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> at the top - Cocoon replaces this and serves the page with a:
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
>  "http://www.w3.org/TR/html4/loose.dtd">
> header.

You can configure this in your XHTML serializer declaration:

<map:serializer name="xhtml"
      src="org.apache.cocoon.serialization.XMLSerializer"
      mime-type="text/html"
      logger="sitemap.serializer.xhtml"
      pool-max="64"
      >
      <doctype-public>-//W3C//DTD XHTML 1.0 Strict//EN</doctype-public>
 
<doctype-system>http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</doctype-system>
      <encoding>UTF-8</encoding>
    </map:serializer>

See [1] for more info.

Regards,
Niels

[1] http://cocoon.apache.org/2.1/userdocs/xhtml-serializer.html


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message