You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Nesto <ne...@libero.it> on 2003/03/07 17:12:09 UTC
xhtml serializers
Hi!
How can I define a set of serializers in the sitemap, with which I can deliver xhtml basic or xhtml transitional or xhtml strict?
I want to write in my pipelines somthing like this:
<map:match>
<map:generate.../>
<map:transform.../>
<map:serializa type="xhtml-Transitional"/>
</map:match>
I get an error If I write in the MAIN sitemap this 3 serializers:
<map:serializer logger="sitemap.serializer.xhtml" mime-type="text/html" name="xhtml-Strict" 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>
<encoding>ISO-8859-1</encoding>
</map:serializer>
<map:serializer logger="sitemap.serializer.xhtml" mime-type="text/html" name="xhtml-Transitional" pool-grow="2" pool-max="64" pool-min="2" src="org.apache.cocoon.serialization.XMLSerializer">
<doctype-public>-//W3C//DTD XHTML 1.0 Transitional//EN</doctype-public>
<doctype-system>http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</doctype-system>
<encoding>ISO-8859-1</encoding>
</map:serializer>
<map:serializer logger="sitemap.serializer.xhtml" mime-type="text/html" name="xhtml-Basic" pool-grow="2" pool-max="64" pool-min="2" src="org.apache.cocoon.serialization.XMLSerializer">
<doctype-public>"-//W3C//DTD XHTML Basic 1.0//EN</doctype-public>
<doctype-system>http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd</doctype-system>
<encoding>ISO-8859-1</encoding>
</map:serializer>
I changed only the name of the serializer and the value of the parameters (DTD..). Do I have to change something else?
Please, tell me if this is correct.. maybe the problem is not here!
Thank you!!!
Nesto
AW: xhtml serializers
Posted by Marco Rolappe <m_...@web.de>.
WHICH error do you get?
-----Ursprüngliche Nachricht-----
Von: cocoon-users-return-47454-m_rolappe=web.de@xml.apache.org
[mailto:cocoon-users-return-47454-m_rolappe=web.de@xml.apache.org]Im Auftrag
von Nesto
Gesendet: Freitag, 7. März 2003 17:12
An: cocoon-users@xml.apache.org
Betreff: xhtml serializers
Hi!
How can I define a set of serializers in the sitemap, with which I can
deliver xhtml basic or xhtml transitional or xhtml strict?
I want to write in my pipelines somthing like this:
<map:match>
<map:generate.../>
<map:transform.../>
<map:serializa type="xhtml-Transitional"/>
</map:match>
I get an error If I write in the MAIN sitemap this 3 serializers:
<map:serializer logger="sitemap.serializer.xhtml" mime-type="text/html"
name="xhtml-Strict" 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-s
ystem>
<encoding>ISO-8859-1</encoding>
</map:serializer>
<map:serializer logger="sitemap.serializer.xhtml" mime-type="text/html"
name="xhtml-Transitional" pool-grow="2" pool-max="64" pool-min="2"
src="org.apache.cocoon.serialization.XMLSerializer">
<doctype-public>-//W3C//DTD XHTML 1.0
Transitional//EN</doctype-public>
<doctype-system>http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</doc
type-system>
<encoding>ISO-8859-1</encoding>
</map:serializer>
<map:serializer logger="sitemap.serializer.xhtml" mime-type="text/html"
name="xhtml-Basic" pool-grow="2" pool-max="64" pool-min="2"
src="org.apache.cocoon.serialization.XMLSerializer">
<doctype-public>"-//W3C//DTD XHTML Basic 1.0//EN</doctype-public>
<doctype-system>http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd</doctype-
system>
<encoding>ISO-8859-1</encoding>
</map:serializer>
I changed only the name of the serializer and the value of the parameters
(DTD..). Do I have to change something else?
Please, tell me if this is correct.. maybe the problem is not here!
Thank you!!!
Nesto