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 Sat, 28 Dec 2002 15:23:46 GMT
nicolaken    2002/12/28 07:23:46

  Modified:    src/resources/conf sitemap.xmap
  Log:
  Now the wellknown files given verbatim are given with the
   correct mime-type, and links in html and xml are followed.
  
  Revision  Changes    Path
  1.49      +43 -2     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.48
  retrieving revision 1.49
  diff -u -r1.48 -r1.49
  --- sitemap.xmap	28 Dec 2002 14:16:00 -0000	1.48
  +++ sitemap.xmap	28 Dec 2002 15:23:46 -0000	1.49
  @@ -369,9 +369,50 @@
       <!-- 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}" mime-type="application/unknown"/>
  +
  +      <map:match pattern="**.html">
  +        <map:generate type="html" src="content/{1}.html"/>      
  +        <map:serialize type="html"/>
  +      </map:match>
  +
  +      <map:match pattern="**.xml">
  +        <map:generate type="file" src="content/{1}.xml"/>      
  +        <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/{1}.js" mime-type="application/javascript"/>
  +      </map:match>
  +      
  +      <map:match pattern="**.gif">
  +        <map:read src="content/{1}.gif" mime-type="image/gif"/>
  +      </map:match>
  +
  +      <map:match pattern="**.png">
  +        <map:read src="content/{1}.png" mime-type="image/png"/>
  +      </map:match>
  +      
  +      <map:match pattern="**.jpg">
  +        <map:read src="content/{1}.jpg" mime-type="image/jpeg"/>
  +      </map:match>
  +
  +      <map:match pattern="**.jpeg">
  +        <map:read src="content/{1}.jpeg" mime-type="image/jpeg"/>
  +      </map:match> 
  +           
  +      <map:match pattern="**.pdf">
  +        <map:read src="content/{1}.pdf" mime-type="application/pdf"/>
  +      </map:match>
  +      
  +      <map:match pattern="**">
  +        <map:read src="content/{1}" mime-type="application/unknown"/>
  +      </map:match>
       </map:act>
  -   
  +      
      <!-- ... otherwise try to generate it using these rules.  -->
     
     <map:match pattern="apachestats">
  
  
  

Mime
View raw message