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 / ziparchive-serializer.xml < prev    next >
Encoding:
Extensible Markup Language  |  2004-07-12  |  2.4 KB  |  71 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>Zip archive Serializer</title>
  22.         <version>1.0</version>
  23.         <type>Technical document</type>
  24.         <authors>
  25.           <person name="Sylvain Wallez" email="sylvain@apache.org"/>
  26.          </authors>
  27.          <abstract>This document describes the Zip archive serializer of Cocoon.</abstract>
  28.     </header>
  29.     <body>
  30.         <s1 title="Zip archive Serializer">
  31.           <p>The Zip archive serializer generates a zip archive by aggregating several sources.</p>
  32.         
  33.  <p>The input document should describe entries of the archive by means of
  34.  their name (which can be a path) and their content either as URLs or
  35.  inline data :</p>
  36.  <ul>
  37.    <li>URLs, given by the "src" attribute, are Cocoon sources and as such
  38.        can use any of the protocols handled by Cocoon, including "cocoon:" to
  39.        include dynamically generated content in the archive.</li>
  40.    <li>inline data is represented by an XML document that is serialized to the
  41.        zip entry using the serializer identified by the "serializer" attribute.</li>
  42.    </ul>
  43.  <p>
  44.    Example :
  45.  </p>
  46. <source>
  47. <zip:archive xmlns:zip="http://apache.org/cocoon/zip-archive/1.0">
  48.   <zip:entry name="foo.html" src="cocoon://dynFoo.html"/>
  49.   <zip:entry name="images/bar.jpeg" src="bar.jpeg"/>
  50.   <zip:entry name="index.html" serializer="html">
  51.     <html>
  52.       <head>
  53.         <title>Index page</title>
  54.       </head>
  55.       <body>
  56.         Please go <a href="foo.html">there</a>
  57.       </body>
  58.     </html>
  59.   </zip:entry>
  60. </zip:archive>
  61. </source>
  62.  
  63.            <ul>
  64.              <li>Name: zip</li>
  65.              <li>Class: org.apache.cocoon.serialization.ZipArchiveSerializer</li>
  66.                  <li>Cacheable: no</li>
  67.            </ul>
  68.         </s1>
  69.     </body>
  70. </document>
  71.