joerg       2004/03/05 19:41:50

  Modified:    src/webapp/samples/hello-world sitemap.xmap
               src/webapp/samples samples.xml
  Added:       src/webapp/samples/hello-world/content/xml hello_zip.xml
  Log:
  added ZIPArchiveSerializer sample
  
  Revision  Changes    Path
  1.2       +8 -2      cocoon-2.0/src/webapp/samples/hello-world/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/cocoon-2.0/src/webapp/samples/hello-world/sitemap.xmap,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- sitemap.xmap      9 Mar 2003 00:06:24 -0000       1.1
  +++ sitemap.xmap      6 Mar 2004 03:41:50 -0000       1.2
  @@ -48,7 +48,8 @@
                      src="org.apache.cocoon.serialization.FOPSerializer" 
mime-type="application/postscript"/>
      <map:serializer name="xls" logger="sitemap.serializer.xls"
                      src="org.apache.cocoon.serialization.HSSFSerializer" 
mime-type="application/vnd.ms-excel"/>
  -
  +   <map:serializer name="zip" logger="sitemap.serializer.zip"
  +                   
src="org.apache.cocoon.serialization.ZipArchiveSerializer" 
mime-type="application/zip"/>
     </map:serializers>               
   
    </map:components>
  @@ -159,7 +160,12 @@
       <map:transform src="style/xsl/simple-page2xls.xsl"/>
       <map:serialize type="xls"/>
      </map:match>
  -         
  +
  +   <map:match pattern="hello.zip">
  +    <map:generate src="content/xml/hello_zip.xml"/>
  +    <map:serialize type="zip"/>
  +   </map:match>
  +
     </map:pipeline>
    </map:pipelines>
   
  
  
  
  1.2       +4 -1      cocoon-2.0/src/webapp/samples/samples.xml
  
  Index: samples.xml
  ===================================================================
  RCS file: /home/cvs/cocoon-2.0/src/webapp/samples/samples.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- samples.xml       9 Mar 2003 00:06:18 -0000       1.1
  +++ samples.xml       6 Mar 2004 03:41:50 -0000       1.2
  @@ -53,6 +53,9 @@
      <sample name="XLS" href="hello-world/hello.xls">
       Still stuck with legacy file formats? Don't worry, here is an example.
      </sample>
  +   <sample name="ZIP" href="hello-world/hello.zip">
  +    And at the end alltogether - ok at least 3.
  +   </sample>
     </group>
   
     <group name="More Samples">
  
  
  
  1.1                  
cocoon-2.0/src/webapp/samples/hello-world/content/xml/hello_zip.xml
  
  Index: hello_zip.xml
  ===================================================================
  <?xml version="1.0" encoding="iso-8859-1"?>
  <zip-archive:archive 
xmlns:zip-archive="http://apache.org/cocoon/zip-archive/1.0";>
    <zip-archive:entry name="hello.xml" src="cocoon:/hello.html.source"/>
    <zip-archive:entry name="hello.html" src="cocoon:/hello.html"/>
    <zip-archive:entry name="hello.svg" src="cocoon:/hello.svg"/>
  </zip-archive:archive>
  
  
  
  

Reply via email to