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/documentation sitemap.xmap
Date Mon, 20 May 2002 21:52:24 GMT
nicolaken    02/05/20 14:52:24

  Modified:    src/documentation sitemap.xmap
  Log:
  Cleaned skinning sections and added a @skin@ tag for Ant filtering.
  All current skin resources have now to be referenced under skin/*
  
  Revision  Changes    Path
  1.9       +45 -32    xml-forrest/src/documentation/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/documentation/sitemap.xmap,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- sitemap.xmap	19 May 2002 21:12:29 -0000	1.8
  +++ sitemap.xmap	20 May 2002 21:52:24 -0000	1.9
  @@ -50,7 +50,7 @@
     <map:matchers default="wildcard">
      <map:matcher name="wildcard" src="org.apache.cocoon.matching.WildcardURIMatcher"/>
     </map:matchers>
  -  
  +<!--  
     <map:selectors default="skin-parameter">
       <map:selector name="request-parameter" logger="sitemap.selector.request-parameter"
                    src="org.apache.cocoon.selection.RequestParameterSelector">
  @@ -62,6 +62,7 @@
       </map:selector>
      
     </map:selectors>
  +-->  
    </map:components>
   
   <!-- =========================== Views =================================== -->
  @@ -79,19 +80,16 @@
   
    <map:resources>
     <map:resource name="skinit">
  -   <map:transform src="skins/forrest-site/xslt/html/{type}.xsl">
  +   <map:transform src="skins/@skin@/xslt/html/{type}.xsl">
        <map:parameter name="isfaq" value="{isfaq}"/>
      </map:transform>
      <map:serialize/>
     </map:resource>
     
  -  <map:resource name="skin-style">
  -    <map:read src="skins/forrest-site/{path}" mime-type="{mime-type}"/>
  +  <map:resource name="skin-read">
  +    <map:read src="skins/@skin@/{path}" mime-type="{mime-type}"/>
     </map:resource>
   
  -  <map:resource name="skin-res">
  -    <map:read src="skins/forrest-site/{path}" mime-type="{mime-type}"/>
  -  </map:resource>
    </map:resources>
    
   <!-- =========================== Pipelines ================================= -->
  @@ -203,7 +201,6 @@
       <map:call resource="skinit">
         <map:parameter name="type" value="site2xhtml"/>
       </map:call>
  -     <map:serialize/>
      </map:match>
   
      <map:match pattern="**/*.html">
  @@ -218,52 +215,67 @@
   
      <!-- ================  Static  =========================== -->
   
  -   <map:match pattern="common/**.js">
  -     <map:read src="resources/scripts/{1}.js" mime-type="application/javascript"/>
  +   <map:match pattern="skin/**.js">
  +    <map:call resource="skin-read">
  +      <map:parameter name="path" value="scripts/{1}.js"/>
  +      <map:parameter name="mime-type" value="application/javascript"/>
  +    </map:call>     
      </map:match>
   
  -   <map:match pattern="**.js">
  -    <map:read src="resources/css/{1}.css" mime-type="text/css"/>
  +   <map:match pattern="**/skin/**.js">
  +    <map:call resource="skin-read">
  +      <map:parameter name="path" value="scripts/{2}.js"/>
  +      <map:parameter name="mime-type" value="application/javascript"/>
  +    </map:call>     
      </map:match>
      
  -   <map:match pattern="common/**.css">
  -    <map:read src="resources/css/{1}.css" mime-type="text/css"/>
  +   <map:match pattern="**.js">
  +     <map:read src="resources/scripts/{1}.js" mime-type="application/javascript"/>
      </map:match>
   
  -   <map:match pattern="**.css">
  -    <map:call resource="skin-style">
  +   <map:match pattern="skin/**.css">
  +    <map:call resource="skin-read">
         <map:parameter name="path" value="css/{1}.css"/>
         <map:parameter name="mime-type" value="text/css"/>
       </map:call>  
      </map:match>
         
  -   <map:match pattern="common/images/**.*">
  -    <map:read src="resources/images/{1}.{2}" mime-type="image/{2}"/>
  +   <map:match pattern="**/skin/**.css">
  +    <map:call resource="skin-read">
  +      <map:parameter name="path" value="css/{2}.css"/>
  +      <map:parameter name="mime-type" value="text/css"/>
  +    </map:call>
      </map:match>
      
  -   <map:match pattern="images/**.gif">
  -    <map:call resource="skin-res">
  -      <map:parameter name="path" value="images/{1}.gif"/>
  -      <map:parameter name="mime-type" value="image/gif"/>
  -    </map:call>                                 
  +   <map:match pattern="**.css">
  +    <map:read src="resources/css/{1}.css" mime-type="text/css"/>
      </map:match>
   
  -   <map:match pattern="images/**.jpg">
  -    <map:call resource="skin-res">
  -      <map:parameter name="path" value="images/{1}.jpg"/>
  -      <map:parameter name="mime-type" value="image/jpeg"/>
  +   <map:match pattern="skin/images/**.*">
  +    <map:call resource="skin-read">
  +      <map:parameter name="path" value="images/{1}.{2}"/>
  +      <map:parameter name="mime-type" value="image/{2}"/>
       </map:call>                                 
      </map:match>
      
  -   <map:match pattern="images/**.png">
  -    <map:call resource="skin-res">
  -      <map:parameter name="path" value="images/{1}.png"/>
  -      <map:parameter name="mime-type" value="image/png"/>
  +   <map:match pattern="**/skin/images/**.*">
  +    <map:call resource="skin-read">
  +      <map:parameter name="path" value="images/{2}.{3}"/>
  +      <map:parameter name="mime-type" value="image/{3}"/>
       </map:call>                                 
      </map:match>
         
  +   <map:match pattern="images/**.*">
  +    <map:read src="resources/images/{1}.{2}" mime-type="image/{2}"/>
  +   </map:match>
  +
  +   <map:match pattern="**/images/**.*">
  +    <map:read src="resources/images/{2}.{3}" mime-type="image/{3}"/>
  +   </map:match>
  +
  +   
      <map:match pattern="**favicon.ico">
  -    <map:call resource="skin-res">
  +    <map:call resource="skin-read">
         <map:parameter name="path" value="images/favicon.ico"/>
         <map:parameter name="mime-type" value="application/ico"/>
       </map:call>    
  @@ -273,3 +285,4 @@
    </map:pipelines>
   
   </map:sitemap>
  +
  
  
  

Mime
View raw message