>>>>> "Dirk" == Dirk Gronert <[EMAIL PROTECTED]> writes:

    Dirk> 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?

    Dirk> Hello Colin,

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

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

    Dirk>       <doctype-public>-//W3C//DTD XHTML 1.0
    Dirk> Strict//EN</doctype-public> <doctype-system>
    Dirk> http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
    Dirk> </doctype-system> <encoding>UTF-8</encoding>
    Dirk> </map:serializer> ...  </map:serializers> ...

You are right Dirk. Thank you.
-- 
Colin Paul Adams
Preston Lancashire

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

Reply via email to