You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by up...@apache.org on 2003/06/16 12:44:54 UTC

cvs commit: cocoon-2.1/src/webapp/samples/hello-world/content hello_zip.xml

upayavira    2003/06/16 03:44:54

  Modified:    src/webapp/samples/hello-world samples.xml sitemap.xmap
  Added:       src/webapp/samples/hello-world/content hello_zip.xml
  Log:
  Added zip sample to hello world samples
  
  Revision  Changes    Path
  1.9       +5 -1      cocoon-2.1/src/webapp/samples/hello-world/samples.xml
  
  Index: samples.xml
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/webapp/samples/hello-world/samples.xml,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- samples.xml	4 Jun 2003 22:45:07 -0000	1.8
  +++ samples.xml	16 Jun 2003 10:44:53 -0000	1.9
  @@ -70,6 +70,10 @@
       Flash ... You need the appropriate plugin for your browser.
       (Requires block-swf.)
      </sample>
  +   <sample name="Zip archive" href="hello.zip">
  +    Or you might want your information nicely packaged as a zip file.
  +   </sample>
  +
     </group>
   
     <group name="Hello Office!">
  
  
  
  1.11      +5 -1      cocoon-2.1/src/webapp/samples/hello-world/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/webapp/samples/hello-world/sitemap.xmap,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- sitemap.xmap	4 Jun 2003 22:45:07 -0000	1.10
  +++ sitemap.xmap	16 Jun 2003 10:44:53 -0000	1.11
  @@ -101,6 +101,10 @@
       <map:serialize type="sxd"/>
      </map:match>
   
  +   <map:match pattern="hello.zip">
  +    <map:generate src="content/hello_zip.xml"/>
  +    <map:serialize type="zip"/>
  +   </map:match>
     </map:pipeline>
    </map:pipelines>
   </map:sitemap>
  
  
  
  1.1                  cocoon-2.1/src/webapp/samples/hello-world/content/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.xml"/>
    <zip-archive:entry name="hello.html" src="cocoon:/hello.html"/>
    <zip-archive:entry name="hello.svg" src="cocoon:/hello.svg"/>
  </zip-archive:archive>