You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by eg...@apache.org on 2004/02/21 14:05:34 UTC

cvs commit: cocoon-lenya/src/webapp/lenya resources-shared.xmap

egli        2004/02/21 05:05:34

  Modified:    src/webapp/lenya resources-shared.xmap
  Log:
  enable the pipeline that takes the css from an xml and does some
  context-prefix transformation on it.
  
  Revision  Changes    Path
  1.3       +12 -5     cocoon-lenya/src/webapp/lenya/resources-shared.xmap
  
  Index: resources-shared.xmap
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/resources-shared.xmap,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- resources-shared.xmap	29 Jan 2004 17:23:21 -0000	1.2
  +++ resources-shared.xmap	21 Feb 2004 13:05:34 -0000	1.3
  @@ -8,11 +8,18 @@
         
         <!-- Lenya Publications -->
         
  -          <!-- matches pub-id/area/css/*.css -->
  -          <map:match pattern="*/*/css/*.css">
  -            <map:read src="pubs/{1}/resources/shared/css/{3}.css" mime-type="text/css" />
  -          </map:match>
  -
  +      <!-- matches pub-id/area/css/*.css -->
  +      <map:match pattern="*/*/css/*.css">
  +        <map:act type="resource-exists" src="pubs/{1}/resources/shared/css/{3}.xml">
  +          <map:generate src="pubs/{../1}/resources/shared/css/{../3}.xml"/>
  +          <map:transform src="resources/css/css.xsl">
  +            <map:parameter name="contextprefix" value="{request:contextPath}"/>
  +          </map:transform>
  +          <map:serialize type="text" mime-type="text/css"/>
  +        </map:act>
  +        <map:read src="pubs/{1}/resources/shared/css/{3}.css" mime-type="text/css" />
  +      </map:match>
  +      
             <!-- matches pub-id/area/javascript/**.js -->
             <map:match pattern="*/*/javascript/**.js">
               <map:read src="pubs/{1}/resources/shared/javascript/{3}.js" mime-type="application/javascript" />
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org