home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-cocoon-addon-1.4.9-installer.exe / xhtml-serializer.xml < prev    next >
Encoding:
Extensible Markup Language  |  2004-07-12  |  3.4 KB  |  104 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3.   Copyright 1999-2004 The Apache Software Foundation
  4.  
  5.   Licensed under the Apache License, Version 2.0 (the "License");
  6.   you may not use this file except in compliance with the License.
  7.   You may obtain a copy of the License at
  8.  
  9.       http://www.apache.org/licenses/LICENSE-2.0
  10.  
  11.   Unless required by applicable law or agreed to in writing, software
  12.   distributed under the License is distributed on an "AS IS" BASIS,
  13.   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14.   See the License for the specific language governing permissions and
  15.   limitations under the License.
  16. -->
  17. <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.0//EN" "document-v10.dtd">
  18.  
  19. <document>
  20.   <header>
  21.     <title>XHTML Serializer</title>
  22.     <version>0.9</version>
  23.     <type>Technical document</type>
  24.     <authors>
  25.       <person name="Carsten Ziegeler" email="cziegeler@apache.org"/>
  26.       <person name="Bernhard Huber" email="huber@apache.org"/>
  27.     </authors>
  28.     <abstract>This document describes the XHTML serializer of Cocoon.</abstract>
  29.   </header>
  30.   <body>
  31.   <s1 title="XHTML Serializer">
  32.     <p>
  33.       The XHTML serializer serializes sax events to XHTML.
  34.       The output of the XHTML serializer is XHTML.
  35.     </p>
  36.     <ul>
  37.       <li>Name : xhtml</li>
  38.       <li>Class: org.apache.cocoon.serialization.XMLSerializer</li>
  39.       <li>Cacheable: yes</li>
  40.     </ul>
  41.     <s2 title="Sitemap Configuration">
  42.       <p>
  43.         The XHTML serializer is declared in the sitemap serializers section.
  44.       </p>
  45.       <source><![CDATA[
  46. <map:serializers ...
  47. ...
  48.    <map:serializer name="xhtml"
  49.      src="org.apache.cocoon.serialization.XMLSerializer"
  50.      mime-type="text/html" 
  51.      logger="sitemap.serializer.xhtml"
  52.      pool-grow="2" pool-max="64" pool-min="2" 
  53.      >
  54.      <doctype-public>-//W3C//DTD XHTML 1.0 Strict//EN</doctype-public>
  55.      <doctype-system>http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</doctype-system>
  56.      <encoding>UTF-8</encoding>
  57.    </map:serializer>
  58. ...
  59.       ]]></source>
  60.       <p>
  61.         The declaration of the XHTML serializer shall use following 
  62.         XML serializer configuration parameters
  63.       </p>
  64.       <table>
  65.         <tr><th>Name</th><th>Value</th><th>Comment</th></tr>
  66.         <tr><td>doctype-public</td><td>-//W3C//DTD XHTML 1.0 Strict//EN</td>
  67.           <td>specifies the XHTML public document type</td>
  68.         </tr>
  69.         <tr><td>doctype-system</td><td>http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</td>
  70.           <td>specifies the XHTML system document type</td>
  71.         </tr>
  72.         <tr><td>mime-type</td><td>text/html</td>
  73.           <td>specifies mime-type of the serialized XHTML document.
  74.           </td>
  75.         </tr>
  76.       </table>
  77.     </s2>
  78.     <s2 title="Pipeline Usage">
  79.       <p>
  80.         Using the XHTML Serializer in a pipeline is just setting the 
  81.         serializer type to xhtml. 
  82.         The following code snippet uses the XHTML Serializer:
  83.       </p>
  84.       <source><![CDATA[
  85. <map:match pattern="*.html">
  86. ...
  87.   <map:serialize type="xhtml"/>
  88. </map:match>
  89. ...
  90.       ]]></source>
  91.     </s2>
  92.     <s2 title="Further Reading">
  93.       <p>
  94.         As XHTML serializer uses the XML serializer internally, you might 
  95.         want to read the complete list of valid XML configuration parameters.
  96.         It is available at <link href="xml-serializer.html">XML serializer</link>
  97.         user docuementation.
  98.       </p>
  99.     </s2>
  100.   </s1>
  101.   </body>
  102. </document>
  103.  
  104.