forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From je...@apache.org
Subject cvs commit: xml-forrest/src/resources/conf sitemap.xmap
Date Mon, 24 Mar 2003 03:04:05 GMT
jefft       2003/03/23 19:04:05

  Modified:    src/resources/conf sitemap.xmap
  Log:
  - Add comments to section headers
  - Move images to output section
  - Use internal-only="true" for intermediate and source sections, to ensure
    things are correctly classified
  
  Revision  Changes    Path
  1.83      +43 -32    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.82
  retrieving revision 1.83
  diff -u -r1.82 -r1.83
  --- sitemap.xmap	23 Mar 2003 05:47:15 -0000	1.82
  +++ sitemap.xmap	24 Mar 2003 03:04:04 -0000	1.83
  @@ -31,7 +31,6 @@
         </map:transformer>
   
         <map:transformer name="xpath" logger="sitemap.transformer.xpath" src="org.apache.cocoon.transformation.XPathTransformer"
/>
  -
         <map:transformer name="xslt" src="org.apache.cocoon.transformation.TraxTransformer"
logger="sitemap.transformer.xsltc" pool-max="32" pool-min="8" pool-grow="2">
           <use-request-parameters>false</use-request-parameters>
           <use-browser-capabilities-db>false</use-browser-capabilities-db>
  @@ -134,9 +133,10 @@
   
         <!-- ============================================================ -->
         <!-- OUTPUT FORMATS                                               -->
  -      <!-- ============================================================ -->
  +      <!--                  Serves content directly to the user         -->
  +      <!-- +==========================================================+ -->
   
  -      <map:match type="regexp" pattern=".+">
  +      <map:match type="regexp" pattern="^.+$">
           <map:act type="resource-exists">
             <map:parameter name="url" value="content/{0}" />
             <map:mount uri-prefix="" src="raw.xmap" check-reload="yes" />
  @@ -173,12 +173,34 @@
           <map:serialize type="fo2pdf"/>
         </map:match>
   
  +      <map:match pattern="**changes.rss">
  +        <map:mount uri-prefix="" src="status.xmap" check-reload="yes" />
  +      </map:match>
  +
  +      <map:match pattern="profiler">
  +        <map:mount uri-prefix="" src="profiler.xmap" check-reload="yes" />
  +      </map:match>
  +      <map:match pattern="**.js">
  +        <map:mount uri-prefix="" src="static.xmap" check-reload="yes" />
  +      </map:match>
  +      <map:match pattern="**.css">
  +        <map:mount uri-prefix="" src="static.xmap" check-reload="yes" />
  +      </map:match>
  +      <map:match pattern="**images**">
  +        <map:mount uri-prefix="" src="static.xmap" check-reload="yes" />
  +      </map:match>
  +     <map:match pattern="**favicon.ico">
  +        <map:mount uri-prefix="" src="static.xmap" check-reload="yes" />
  +      </map:match>
       </map:pipeline>
   
  +
       <!-- ============================================================ -->
       <!-- INTERMEDIATE FORMATS                                         -->
  +    <!--                          Tabs, menus and body HTML.          -->
  +    <!--                       Called from output format pipelines    -->
       <!-- ============================================================ -->
  -    <map:pipeline internal-only="false">
  +    <map:pipeline internal-only="true">
   
         <!-- External matches -->
         <!-- (HTML rendered directly from special formats) -->
  @@ -235,11 +257,14 @@
   
       <!-- ============================================================ -->
       <!-- SOURCE FORMATS                                               -->
  +    <!--                 Raw XML sources, typically doc-v11 format    -->
       <!-- ============================================================ -->
  -    <map:pipeline internal-only="false">
  +    <map:pipeline internal-only="true">
  + 
         <map:match pattern="**book.xml">
           <map:mount uri-prefix="" src="navigation.xmap" check-reload="yes" />
         </map:match>
  +
         <map:match pattern="**tab.xml">
           <map:mount uri-prefix="" src="navigation.xmap" check-reload="yes" />
         </map:match>
  @@ -248,10 +273,6 @@
           <map:mount uri-prefix="" src="status.xmap" check-reload="yes" />
         </map:match>
   
  -      <map:match pattern="**changes.rss">
  -        <map:mount uri-prefix="" src="status.xmap" check-reload="yes" />
  -      </map:match>
  -
         <map:match pattern="**todo.xml">
           <map:mount uri-prefix="" src="status.xmap" check-reload="yes" />
         </map:match>
  @@ -272,43 +293,33 @@
           <map:mount uri-prefix="" src="faq.xmap" check-reload="yes" />
         </map:match>
   
  -      <map:match pattern="profiler">
  -        <map:mount uri-prefix="" src="profiler.xmap" check-reload="yes" />
  -      </map:match>
  -
  -      <map:match pattern="**.js">
  -        <map:mount uri-prefix="" src="static.xmap" check-reload="yes" />
  -      </map:match>
  -
  -      <map:match pattern="**.css">
  -        <map:mount uri-prefix="" src="static.xmap" check-reload="yes" />
  -      </map:match>
  -
  -      <map:match pattern="**images**">
  -        <map:mount uri-prefix="" src="static.xmap" check-reload="yes" />
  +      <map:match pattern="community/**index.xml">
  +        <map:mount uri-prefix="" src="forrest.xmap" check-reload="yes" />
         </map:match>
   
         <map:match pattern="community/*/**">
           <map:mount uri-prefix="" src="revisions.xmap" check-reload="yes" />
         </map:match>
   
  -      <map:match pattern="**favicon.ico">
  -        <map:mount uri-prefix="" src="static.xmap" check-reload="yes" />
  -      </map:match>
  -
         <map:match pattern="**.xml">
           <map:mount uri-prefix="" src="forrest.xmap" check-reload="yes" />
         </map:match>
   
  +    </map:pipeline>
  +
  +    <!-- ============================================================ -->
  +    <!-- REDIRECTS                                                    -->
  +    <!-- ============================================================ -->
  +    <map:pipeline internal-only="false">
  +
         <map:match pattern="">
  -        <map:mount uri-prefix="" src="redirect.xmap" check-reload="yes" />
  +        <map:redirect-to uri="{request:contextPath}/index.html" />
         </map:match>
  -
  -      <map:match pattern="**/">
  -        <map:mount uri-prefix="" src="redirect.xmap" check-reload="yes" />
  +      <map:match type="regexp" pattern="^.+/$">
  +          <map:redirect-to uri="{request:contextPath}/{0}/index.html"/>
         </map:match>
  -
       </map:pipeline>
  +
   
     </map:pipelines>
   </map:sitemap>
  
  
  

Mime
View raw message