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
Date Sat, 05 Jul 2003 12:34:10 GMT
jefft       2003/07/05 05:34:10

  Modified:    src/resources/conf raw.xmap
  Log:
  - Realized that we don't need the existence check here, because the caller
    _has_ to do it.
  - Add doco
  
  Revision  Changes    Path
  1.6       +67 -57    xml-forrest/src/resources/conf/raw.xmap
  
  Index: raw.xmap
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/conf/raw.xmap,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- raw.xmap	23 Jun 2003 10:14:27 -0000	1.5
  +++ raw.xmap	5 Jul 2003 12:34:10 -0000	1.6
  @@ -1,4 +1,18 @@
   <?xml version="1.0"?>
  +<!-- ===============================================
  +Serves 'raw' content from files in src/documentation/content/
  +This allows the inclusion of binary content (*.doc, *.pdf etc) in Forrest sites.
  +
  +This pipeline *relies* on the caller checking if the content actually exists!
  +If the caller doesn't do this, this sitemap's '**' pipeline will match everything.
  +
  +Generates  :  Exact bytes read from content/**
  +Example URL:  http://localhost:8888/blah.doc
  +Used by    :  sitemap.xmap
  +Uses       :  content/**
  +
  +$Revision$
  +==================================================== -->
   
   <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
     <map:components>
  @@ -24,64 +38,60 @@
         <!-- ============================================================ -->
         <map:match pattern="**">
   
  -        <map:select type="exists">
  -          <map:when test="content/{1}">
  -            <map:match pattern="**.html">
  -              <!--
  -              Use this instead if you want JTidy to clean up your HTML
  -              <map:generate type="html" src="content/{0}" />
  -              <map:serialize type="html"/>
  -              -->
  -              <map:read src="content/{0}" mime-type="text/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:match pattern="**.html">
  +          <!--
  +          Use this instead if you want JTidy to clean up your HTML
  +          <map:generate type="html" src="content/{0}" />
  +          <map:serialize type="html"/>
  +          -->
  +          <map:read src="content/{0}" mime-type="text/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:when>
  -        </map:select>
         </map:match>
   
       </map:pipeline>
  
  
  

Mime
View raw message