You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Dirk Gronert <u1...@hs-harz.de> on 2004/07/01 07:48:31 UTC
Re: Supplying parameters to HTML serialize
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Supplying parameters to HTML serialize
Posted by Colin Paul Adams <co...@colina.demon.co.uk>.
>>>>> "Dirk" == Dirk Gronert <u1...@hs-harz.de> 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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org