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 raw.xmap sitemap.xmap
Date Sat, 22 Mar 2003 11:04:55 GMT
jefft       2003/03/22 03:04:55

  Modified:    src/resources/conf sitemap.xmap
  Added:       src/resources/conf raw.xmap
  Log:
  Re-add support for serving raw src/documentation/content/* files
  
  Revision  Changes    Path
  1.80      +8 -1      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.79
  retrieving revision 1.80
  diff -u -r1.79 -r1.80
  --- sitemap.xmap	22 Mar 2003 05:15:07 -0000	1.79
  +++ sitemap.xmap	22 Mar 2003 11:04:55 -0000	1.80
  @@ -136,6 +136,13 @@
         <!-- OUTPUT FORMATS                                               -->
         <!-- ============================================================ -->
   
  +      <map:match pattern="**">
  +        <map:act type="resource-exists">
  +          <map:parameter name="url" value="content/{0}" />
  +          <map:mount uri-prefix="" src="raw.xmap" check-reload="yes" />
  +        </map:act>
  +      </map:match>
  +
         <map:match pattern="*.html">
           <map:aggregate element="site">
             <map:part src="cocoon:/tab-{1}.xml"/>
  @@ -297,7 +304,7 @@
           <map:mount uri-prefix="" src="redirect.xmap" check-reload="yes" />
         </map:match>
   
  -      <map:match pattern="**">
  +      <map:match pattern="**.xml">
           <map:mount uri-prefix="" src="forrest.xmap" check-reload="yes" />
         </map:match>
   
  
  
  
  1.1                  xml-forrest/src/resources/conf/raw.xmap
  
  Index: raw.xmap
  ===================================================================
  <?xml version="1.0"?>
  
  <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
    <map:components>
      <map:generators default="file">
        <map:generator name="html" src="org.apache.cocoon.generation.HTMLGenerator" label="content"
/>
      </map:generators>
      <map:serializers default="html"/>
      <map:transformers default="xslt"/>
      <map:readers default="resource"/>
      <map:matchers default="wildcard"/>
      <map:actions/>
      <map:selectors default="parameter"/>
      <map:pipes/>
    </map:components>
  
    <map:resources>
    </map:resources>
  
    <map:pipelines>
      <map:pipeline>
  
        <!-- ============================================================ -->
        <!-- OUTPUT FORMATS                                               -->
        <!-- ============================================================ -->
        <map:match pattern="**">
  
          <map:act type="resource-exists">
            <map:parameter name="url" value="content/{1}" />
            <map:match pattern="**.html">
              <!--
              Use this instead if you don't want JTidy to clean up your HTML
              <map:read src="content/{0}" mime-type="text/html"/>
              -->
              <map:generate type="html" src="content/{0}" />
              <map:serialize type="html" />
            </map:match>
  
            <map:match pattern="**.xml">
              <map:generate type="file" src="content/{0}" />
              <map:serialize type="xml" />
            </map:match>
  
            <map:match pattern="skin/**.css">
              <map:read src="content/{1}.css" mime-type="text/css" />
            </map:match>
  
            <map:match pattern="**.js">
              <map:read src="content/{0}" mime-type="application/javascript" />
            </map:match>
  
            <map:match pattern="**.gif">
              <map:read src="content/{0}" mime-type="image/gif" />
            </map:match>
  
            <map:match pattern="**.png">
              <map:read src="content/{0}" mime-type="image/png" />
            </map:match>
  
            <map:match pattern="**.jpg">
              <map:read src="content/{0}" mime-type="image/jpeg" />
            </map:match>
  
            <map:match pattern="**.jpeg">
              <map:read src="content/{0}" mime-type="image/jpeg" />
            </map:match>
  
            <map:match pattern="**.pdf">
              <map:read src="content/{0}" mime-type="application/pdf" />
            </map:match>
  
            <map:match pattern="**.swf">
              <map:read src="content/{0}" mime-type="application/x-shockwave-flash" />
            </map:match>
  
            <map:match pattern="**.txt">
              <map:read src="content/{0}" mime-type="text/plain" />
            </map:match>
  
            <map:match pattern="**">
              <map:read src="content/{1}"/>
            </map:match>
          </map:act>
        </map:match>
  
      </map:pipeline>
    </map:pipelines>
  </map:sitemap>
  
  
  

Mime
View raw message