giacomo     2003/09/04 09:00:16

  Modified:    src/blocks/cron/samples docs.xml samples.xml sitemap.xmap
  Log:
  added samples
  
  Revision  Changes    Path
  1.2       +3 -3      cocoon-2.1/src/blocks/cron/samples/docs.xml
  
  Index: docs.xml
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/cron/samples/docs.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -d -b -u -r1.1 -r1.2
  --- docs.xml  3 Sep 2003 16:04:02 -0000       1.1
  +++ docs.xml  4 Sep 2003 16:00:16 -0000       1.2
  @@ -184,15 +184,15 @@
   </component>
                            </source>
               </section>
  -            <!--
  +
               <section>
                   <title>Samples</title>
                   <p>
                       Now you should take a look at the samples to show you 
how the API of the 
  -                         <link 
href="cron.xsp.html"><code>JobScheduler</code></link> can be used.
  +                         <link 
href="cron.html"><code>JobScheduler</code></link> can be used.
                        </p>
               </section>
  -            -->
  +
           </section>
       </body>
   </document>
  
  
  
  1.2       +1 -3      cocoon-2.1/src/blocks/cron/samples/samples.xml
  
  Index: samples.xml
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/cron/samples/samples.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -d -b -u -r1.1 -r1.2
  --- samples.xml       3 Sep 2003 16:04:02 -0000       1.1
  +++ samples.xml       4 Sep 2003 16:00:16 -0000       1.2
  @@ -10,12 +10,10 @@
        </sample>
     </group>
   
  -  <!--
     <group name="Cron Sample">
        <sample name="Cron" href="cron.html" xlink:role="dynamic">
         Cron samples.
        </sample>
     </group>
  -  -->
     
   </samples>
  
  
  
  1.2       +33 -11    cocoon-2.1/src/blocks/cron/samples/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/cron/samples/sitemap.xmap,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -d -b -u -r1.1 -r1.2
  --- sitemap.xmap      3 Sep 2003 16:04:02 -0000       1.1
  +++ sitemap.xmap      4 Sep 2003 16:00:16 -0000       1.2
  @@ -4,7 +4,11 @@
   <!-- ========================= Components ================================ 
-->
   
    <map:components>
  -  <map:generators default="file"/>
  +  <map:generators default="file">
  +   <map:generator name="jx"
  +                  src="org.apache.cocoon.generation.JXTemplateGenerator"
  +                  logger="jx.sitemap.generator"/>
  +   </map:generators>
     <map:transformers default="xslt"/>
     <map:readers default="resource"/>
     <map:serializers default="html"/>
  @@ -30,10 +34,26 @@
   
    </map:views>
   
  +<!-- ============================ Flows ================================== 
-->
  +
  + <map:flow language="javascript">
  +  <map:script src="cron.js"/>
  + </map:flow>
  +
   <!-- =========================== Pipelines ================================= 
-->
   
    <map:pipelines>
   
  +  <map:pipeline internal-only="false">
  +   <map:match pattern="*.view">
  +    <map:generate type="jx" src="{1}.xml"/>
  +    <map:transform 
src="context://samples/common/style/xsl/html/complex-page2html.xsl">
  +       <map:parameter name="contextPath" value="{request:contextPath}"/>
  +    </map:transform>
  +    <map:serialize/>
  +   </map:match>
  +  </map:pipeline>
  +
     <map:pipeline>
   
      <map:match pattern="">
  @@ -48,20 +68,22 @@
       <map:serialize/>
      </map:match>
   
  -   <map:match pattern="*.xsp.html">
  -    <map:generate type="serverpages" src="{1}.xsp"/>
  +   <map:match pattern="docs.html">
  +    <map:generate src="docs.xml"/>
       <map:transform 
src="context://samples/common/style/xsl/html/complex-page2html.xsl">
          <map:parameter name="contextPath" value="{request:contextPath}"/>
       </map:transform>
       <map:serialize/>
      </map:match>
      
  -   <map:match pattern="*.html">
  -    <map:generate src="{1}.xml"/>
  -    <map:transform 
src="context://samples/common/style/xsl/html/complex-page2html.xsl">
  -       <map:parameter name="contextPath" value="{request:contextPath}"/>
  -    </map:transform>
  -    <map:serialize/>
  +   <map:match pattern="cron.html">
  +    <map:call function="cron">
  +       <map:parameter name="realPath" value="{realpath:/}"/>
  +    </map:call>
  +   </map:match>   
  +   
  +   <map:match pattern="continue.*">
  +    <map:call continuation="{1}"/>
      </map:match>   
           
     </map:pipeline>
  
  
  

Reply via email to