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 / svgxml-serializer.xml < prev    next >
Encoding:
Extensible Markup Language  |  2004-07-12  |  3.5 KB  |  106 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>SVG/XML 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 svg/xml serializer of Cocoon.</abstract>
  29.   </header>
  30.   <body>
  31.   <s1 title="SVG/XML Serializer">
  32.     <p>
  33.       The SVG serializer serializes sax events to SVG XML.
  34.       The output of the SVG serializer is SVG XML; the SVG XML is not 
  35.       rasterized to any image format by this serializer.
  36.     </p>
  37.     <ul>
  38.       <li>Name : svgxml</li>
  39.       <li>Class: org.apache.cocoon.serialization.XMLSerializer</li>
  40.       <li>Cacheable: yes</li>
  41.     </ul>
  42.     <s2 title="Sitemap Configuration">
  43.       <p>
  44.         The SVG XML serializer is declared in the sitemap serializers section.
  45.       </p>
  46.       <source><![CDATA[
  47. <map:serializers ...
  48. ...
  49.   <map:serializer name="xml"
  50.     src="org.apache.cocoon.serialization.XMLSerializer"
  51.     mime-type="text/xml"  
  52.     doctype-public="-//W3C//DTD SVG 1.0//EN"
  53.     doctype-system="http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd";
  54.     logger="sitemap.serializer.xml" 
  55.     pool-grow="4" pool-max="32" pool-min="4">
  56.     <!-- serializer configurations -->
  57. ...    
  58.   </map:serializer>
  59. ...
  60.       ]]></source>
  61.       <p>
  62.         The declaration of the SVG serializer shall use following 
  63.         XML serializer configuration parameters
  64.       </p>
  65.       <table>
  66.         <tr><th>Name</th><th>Value</th><th>Comment</th></tr>
  67.         <tr><td>doctype-public</td><td>-//W3C//DTD SVG 1.0//EN</td>
  68.           <td>specifies the SVG XML public document type</td>
  69.         </tr>
  70.         <tr><td>doctype-system</td><td>http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd</td>
  71.           <td>specifies the SVG XML system document type</td>
  72.         </tr>
  73.         <tr><td>mime-type</td><td>text/xml</td>
  74.           <td>Following mime-type may be used, too:
  75.             <code>image/svg+xml</code>, <code>application/xml</code>.
  76.             The mime-type <code>text/xml</code> is the most general one.
  77.           </td>
  78.         </tr>
  79.       </table>
  80.     </s2>
  81.     <s2 title="Pipeline Usage">
  82.       <p>
  83.         Using the SVG XML serializer in a pipeline is just setting the 
  84.         serializer type to svgxml. The following code snippet uses the svxml serializer:
  85.       </p>
  86.       <source><![CDATA[
  87. <map:match pattern="svg">
  88. ...
  89.   <map:serialize type="svgxml"/>
  90. </map:match>
  91. ...
  92.       ]]></source>
  93.     </s2>
  94.     <s2 title="Further Reading">
  95.       <p>
  96.         As SVG serializer uses the XML serializer internally, you might 
  97.         want to read the complete list of valid XML configuration parameters.
  98.         It is available at <link href="xml-serializer.html">XML serializer</link>
  99.         user documentation.
  100.       </p>
  101.     </s2>
  102.   </s1>
  103.   </body>
  104. </document>
  105.  
  106.