cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ovi...@apache.org
Subject cvs commit: xml-cocoon2/src/scratchpad/schecoon/webapp sitemap.xmap
Date Tue, 19 Mar 2002 09:47:36 GMT
ovidiu      02/03/19 01:47:36

  Modified:    src/scratchpad/schecoon/webapp sitemap.xmap
  Log:
  Use the wildcard matcher instead of regexp. Changed the name of the
  special function that handles continuations to "handleContinuation".
  
  Revision  Changes    Path
  1.8       +10 -10    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.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- sitemap.xmap	17 Mar 2002 22:06:59 -0000	1.7
  +++ sitemap.xmap	19 Mar 2002 09:47:36 -0000	1.8
  @@ -7,7 +7,7 @@
       <map:transformers default="xslt"/>
       <map:readers default="resource"/>
       <map:serializers default="html"/>
  -    <map:matchers default="regexp"/>
  +    <map:matchers default="wildcard"/>
       <map:flow-interpreters default="JavaScript"/>
     </map:components>
   
  @@ -34,20 +34,20 @@
      <map:pipeline>
   
         <!-- Simple pipeline which has the pipeline definition inline. -->
  -      <map:match pattern="documentation/(.*).html">
  +      <map:match pattern="documentation/*.html">
           <map:generate src="docs/{1}.xml" type="file"/>
           <map:transform src="stylesheets/document2html.xsl"/>
           <map:serialize/>
         </map:match>
   
         <!-- Simple pipeline that reads an image from the filesystem -->
  -      <map:match pattern="sites/images/(.*).gif">
  +      <map:match pattern="sites/images/*.gif">
           <map:read src="images/{1}.gif" mime-type="image/gif"/>
         </map:match>
   
         <!-- Pipeline for processing XSP. We use a resource define
         above. -->
  -      <map:match pattern="xsp/(.*).html">
  +      <map:match pattern="xsp/*.html">
           <map:call resource="xsp">
             <map:parameter name="source" value="xsp/{1}.xsp"/>
           </map:call>
  @@ -58,7 +58,7 @@
         the request. To test, send a request to
         /schecoon/document/index.html
         -->
  -      <map:match pattern="(.*)/(.*).html">
  +      <map:match pattern="*/*.html">
           <map:call resource="{1}2html">
             <map:parameter name="source" value="docs/{2}.xml"/>
           </map:call>
  @@ -69,7 +69,7 @@
         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:match pattern="*.html">
           <map:call resource="document2html">
             <map:parameter name="source" value="docs/{1}.xml"/>
           </map:call>
  @@ -88,7 +88,7 @@
         below).
   
         -->
  -      <map:match pattern="function/(.*)">
  +      <map:match pattern="function/*">
           <map:call function="{1}">
             <map:parameter name="a" value="1"/>
             <map:parameter name="b" value="2"/>
  @@ -97,9 +97,9 @@
         </map:match>
   
         <!-- This pipeline executes continuations stored on the server -->
  -      <map:match pattern="kont/(.*)">
  -        <map:call function="schecoon:handle-continuation">
  -          <map:parameter name="kont-id" value="{1}"/>
  +      <map:match pattern="kont/*">
  +        <map:call function="handleContinuation">
  +          <map:parameter name="kontId" value="{1}def"/>
           </map:call>
         </map:match>
   
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message