shannon 2002/06/06 11:18:39
Modified: src/documentation/xdocs/faq faq-serializers.xml
Log:
added more xhtml info as suggested by Vadim
Revision Changes Path
1.3 +21 -1 xml-cocoon2/src/documentation/xdocs/faq/faq-serializers.xml
Index: faq-serializers.xml
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/documentation/xdocs/faq/faq-serializers.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- faq-serializers.xml 6 Jun 2002 17:03:51 -0000 1.2
+++ faq-serializers.xml 6 Jun 2002 18:18:38 -0000 1.3
@@ -32,8 +32,28 @@
serializer converts it to HTML. For example, I have some <br/> elements which
are converted to <br> elements. What can I do?
</p>
<p>
-Use the XML serializer.
+Cocoon has serializer configured for XHTML. First, make sure to declare it in
+your sitemap's component section (within map:serializers).
</p>
+<source><![CDATA[
+<map:serializer name="xhtml" mime-type="text/html"
+ logger="sitemap.serializer.xhtml"
+ src="org.apache.cocoon.serialization.XMLSerializer"
+ pool-max="64" pool-min="2" pool-grow="2">
+ <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>
+]]></source>
+
+ <p>
+Then, in any pipeline, simply use the serializer as follows.
+ </p>
+
+<source><![CDATA[
+<map:serialize type="xhtml" />
+]]></source>
+
</answer>
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]