forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nicola...@apache.org
Subject cvs commit: xml-forrest/src/resources/conf sitemap.xmap
Date Mon, 04 Nov 2002 21:11:44 GMT
nicolaken    2002/11/04 13:11:44

  Modified:    .        status.xml
               src/resources/conf sitemap.xmap
  Log:
      <action dev="NKB" type="update" context="webapp">
        Now Cocoon serves a file directly if the filename matches
        the one in ./src/documentation/contents/** .
      </action>
      <action dev="NKB" type="update" context="webapp">
       Put the internal matches in a separate pipeline with internal-only="true".
      </action>
  
  Revision  Changes    Path
  1.33      +7 -0      xml-forrest/status.xml
  
  Index: status.xml
  ===================================================================
  RCS file: /home/cvs/xml-forrest/status.xml,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- status.xml	4 Nov 2002 10:48:39 -0000	1.32
  +++ status.xml	4 Nov 2002 21:11:44 -0000	1.33
  @@ -103,6 +103,13 @@
   
     <changes>
      <release version="0.1" date="2002">
  +    <action dev="NKB" type="update" context="webapp">
  +      Now Cocoon serves a file directly if the filename matches
  +      the one in ./src/documentation/contents/** .
  +    </action>      
  +    <action dev="NKB" type="update" context="webapp">
  +     Put the internal matches in a separate pipeline with internal-only="true".
  +    </action>      
       <action dev="NKB" type="fix" context="shbat">
        Now site builds do not delete files in build/site that are included in the 
        Ant list of default excludes, like CVS info.
  
  
  
  1.31      +39 -18    xml-forrest/src/resources/conf/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/conf/sitemap.xmap,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- sitemap.xmap	4 Nov 2002 16:35:12 -0000	1.30
  +++ sitemap.xmap	4 Nov 2002 21:11:44 -0000	1.31
  @@ -78,9 +78,10 @@
   
     </map:selectors>
   -->
  -  <!--map:actions>
  -    <map:action logger="sitemap.action.request" name="request" src="org.apache.cocoon.acting.RequestParamAction"/>
  -  </map:actions-->
  +  <map:actions>
  +   <!-- <map:action logger="sitemap.action.request" name="request" src="org.apache.cocoon.acting.RequestParamAction"/>
-->
  +    <map:action logger="sitemap.action.resource-exists" name="resource-exists" src="org.apache.cocoon.acting.ResourceExistsAction"/>
  +  </map:actions>
   
     <!--
        The different pipeline implementations
  @@ -139,21 +140,10 @@
   <!-- =========================== Pipelines ================================= -->
   
    <map:pipelines>
  -
  -  <map:pipeline>
  -
  -   <map:match pattern="">
  -    <map:redirect-to uri="/{context:context}/index.html"/>
  -   </map:match>
  -
  -  <map:match pattern="apachestats">
  -    <map:generate type="html"
  -                  src="http://www.apache.org/~rubys/stats/xml.apache.org/">
  -      <map:parameter name="xpath"
  -                     value="/html/body//a[contains(@href,'.xml')]"/>
  -    </map:generate>
  -    <map:serialize type="xml"/>
  -  </map:match>
  +  
  +  <!-- Pipeline that manages the internal URI space
  +       For the external URI space manager, see the next pipeline. -->
  +  <map:pipeline internal-only="true">
   
     <map:match pattern="**tab-**.xml">
       <map:generate src="content/xdocs/tabs.xml"/>
  @@ -334,6 +324,35 @@
       </map:call>
      </map:match>
   
  +  </map:pipeline>
  +
  +
  +  <map:pipeline internal-only="false">
  +
  +   <map:match pattern="">
  +    <map:redirect-to uri="/{context:context}/index.html"/>
  +   </map:match>
  +
  +   <map:match pattern="**">
  +   
  +    <!-- if the file is present verbatim as content, give that to the user... -->
  +    <map:act type="resource-exists">
  +     <map:parameter name="url" value="content/{1}"/>
  +     <map:read src="content/{../1}"/>
  +    </map:act>
  +   
  +   <!-- ... otherwise try to generate it using these rules.  -->
  +  
  +  <map:match pattern="apachestats">
  +    <map:generate type="html"
  +                  src="http://www.apache.org/~rubys/stats/xml.apache.org/">
  +      <map:parameter name="xpath"
  +                     value="/html/body//a[contains(@href,'.xml')]"/>
  +    </map:generate>
  +    <map:serialize type="xml"/>
  +  </map:match>
  +
  +     
      <map:match pattern="*.html">
       <map:aggregate element="site">
        <map:part src="cocoon:/book-{1}.xml"/>
  @@ -504,6 +523,8 @@
       </map:call>
      </map:match>
   
  +   </map:match>
  +   
     </map:pipeline>
    </map:pipelines>
   
  
  
  

Mime
View raw message