Colin Paul Adams wrote:
I am trying to set the DTD and encoding on serialization.
I coded the following in the pipeline:

      <map:serialize type="html">
         <doctype-public>-//W3C//DTD HTML 4.01//EN</doctype-public>
         <doctype-system>"http://www.w3.org/TR/html4/strict.dtd";</doctype-system>
         <encoding>UTF-8</encoding>
       </map:serialize>

yet I still get Transitional DTD and latin-1 meta tag. What am I doing wrong?

Hello Colin,

i'am not sure but I think you can only configure the dtd and enconding in the serializer declaration. Like this:

...
<map:serializers default="...">
...
   <map:serializer name="xhtml"
     src="org.apache.cocoon.serialization.XMLSerializer"
     mime-type="text/html">

     <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>
...
</map:serializers>
...

Dirk


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



Reply via email to