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?
You have to put 'UTF-8' twice. One for mime-type http header and another for encoding of the document.
<map:serializer name="html" mime-type="text/html; charset=utf-8" logger="sitemap.serializer.html" pool-grow="2" pool-max="64" pool-min="2" src="org.apache.cocoon.serialization.XMLSerializer"> <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> <omit-xml-declaration>yes</omit-xml-declaration> <omit-namespaces>yes</omit-namespaces> <encoding>UTF-8</encoding> <indent>yes</indent> </map:serializer>
-- Volkmar W. Pogatzki
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]