ovidiu      02/04/01 21:41:34

  Modified:    src/scratchpad/schecoon/webapp sitemap.xmap
  Log:
  Added Scheme entries.
  
  Revision  Changes    Path
  1.13      +11 -58    xml-cocoon2/src/scratchpad/schecoon/webapp/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/schecoon/webapp/sitemap.xmap,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- sitemap.xmap      30 Mar 2002 05:39:02 -0000      1.12
  +++ sitemap.xmap      2 Apr 2002 05:41:34 -0000       1.13
  @@ -14,9 +14,8 @@
     <map:resources>
   
       <map:resource name="flow">
  -      <map:script src="example.js"/>
  -      <map:script src="example2.js"/>
         <map:script src="examples/calc/calc.js"/>
  +      <map:script src="examples/calc/calc.scm" language="Scheme"/>
       </map:resource>
   
       <map:resource name="document2html">
  @@ -33,21 +32,29 @@
     </map:resources>
   
     <map:pipelines>
  +
      <map:pipeline>
  +      <map:match pattern="calc">
  +        <map:redirect-to uri="calc/"/>
  +      </map:match>
   
         <map:match pattern="calc/kont/*">
           <map:continue with="{1}"/>
         </map:match>
   
         <map:match pattern="calc/">
  -        <map:call function="calculator"/>
  +        <map:call function="calculator" />
         </map:match>
  +   </map:pipeline>
   
  +   <map:pipeline internal-only="false">
         <map:match pattern="calc/*.html">
           <map:generate src="examples/calc/{1}.xsp" type="serverpages"/>
           <map:serialize/>
         </map:match>
  +   </map:pipeline>
   
  +   <map:pipeline>
         <!-- Simple pipeline which has the pipeline definition inline. -->
         <map:match pattern="documentation/*.html">
           <map:generate src="docs/{1}.xml" type="file"/>
  @@ -59,62 +66,8 @@
         <map:match pattern="sites/images/*.gif">
           <map:read src="images/{1}.gif" mime-type="image/gif"/>
         </map:match>
  +   </map:pipeline>
   
  -      <!-- Pipeline for processing XSP. We use a resource define
  -      above. -->
  -      <map:match pattern="xsp/*.html">
  -        <map:call resource="xsp">
  -          <map:parameter name="source" value="xsp/{1}.xsp"/>
  -        </map:call>
  -      </map:match>
  -
  -      <!-- An example of calling a pipeline defined as resource. The
  -      name of the pipeline to be invoked is specified in the URL of
  -      the request. To test, send a request to
  -      /schecoon/document/index.html
  -      -->
  -      <map:match pattern="*/*.html">
  -        <map:call resource="{1}">
  -          <map:parameter name="source" value="docs/{2}.xml"/>
  -        </map:call>
  -      </map:match>
  -
  -      <!-- The above example using a predefined pipeline. The
  -      generated sitemap code will notice that the resource reference
  -      is predefined, and will invoke the function definition for the
  -      resource statically, without doing a dynamic lookup as in the
  -      above example. -->
  -      <map:match pattern="*.html">
  -        <map:call resource="document2html">
  -          <map:parameter name="source" value="docs/{1}.xml"/>
  -        </map:call>
  -      </map:match>
  -
  -      <!-- This example invokes a function in an interpreted language.
  -
  -      The function's argument names can appear as parameters inside
  -      the <map:parameter> elements, like below. In most languages, the
  -      name of te argument is ignored, and the arguments are passed to
  -      the actual function in the position in which they appear in the
  -      XML fragment. In languages where arguments can be named, the
  -      order of the <map:parameter> is not important, as parameters are
  -      associated by name with the actual values.
  -
  -      -->
  -      <map:match pattern="function/*">
  -        <map:call function="{1}">
  -          <map:parameter name="a" value="1"/>
  -          <map:parameter name="b" value="2"/>
  -          <map:parameter name="c" value="{1}abc"/>
  -        </map:call>
  -      </map:match>
  -
  -      <!-- This pipeline executes continuations stored on the server -->
  -      <map:match pattern="kont/*">
  -        <map:continue with="{1}"/>
  -      </map:match>
  -
  -    </map:pipeline>
   
     </map:pipelines>
   
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to