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 resources.xmap
Date Fri, 17 Oct 2003 12:32:32 GMT
nicolaken    2003/10/17 05:32:32

  Modified:    src/resources/conf resources.xmap
  Log:
  Hope this will finally fix the dreaded png icon stuff
  
  Revision  Changes    Path
  1.8       +31 -19    xml-forrest/src/resources/conf/resources.xmap
  
  Index: resources.xmap
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/conf/resources.xmap,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- resources.xmap	16 Oct 2003 17:21:37 -0000	1.7
  +++ resources.xmap	17 Oct 2003 12:32:32 -0000	1.8
  @@ -81,6 +81,35 @@
               <map:read src="{project:content.xdocs}{1}my-images/{2}.{3}" mime-type="image/{3}"
/>
            </map:match>
   
  +         <map:match pattern="images/**.png">
  +            <map:select type="exists">
  +               <map:when test="{project:content.xdocs}/images/{1}.svg">
  +                  <map:generate src="{project:content.xdocs}/images/{1}.svg" />
  +                  <map:transform src="resources/stylesheets/project2text.xsl" />
  +                  <map:serialize type="svg2png" />
  +               </map:when>
  +               <map:when test="{project:resources.images}/{1}.svg">
  +                  <map:generate src="{project:resources.images}/{1}.svg" />
  +                  <map:transform src="resources/stylesheets/project2text.xsl" />
  +                  <map:serialize type="svg2png" />
  +               </map:when>
  +               <map:when test="resources/images/{1}.svg">
  +                  <map:generate src="resources/images/{1}.svg" />
  +                  <map:transform src="resources/stylesheets/project2text.xsl" />
  +                  <map:serialize type="svg2png" />
  +               </map:when>
  +               <map:when test="{project:content.xdocs}/images/{1}.png">
  +                  <map:read src="{project:content.xdocs}/images/{1}.png" mime-type="image/png"
/>
  +               </map:when>
  +               <map:when test="resources/images/{1}.png">
  +                  <map:read src="resources/images/{1}.png" mime-type="image/png" />
  +               </map:when>
  +               <map:otherwise>
  +                  <map:read src="{project:resources.images}/{1}.png" mime-type="image/png"
/>
  +               </map:otherwise>
  +            </map:select>
  +         </map:match>
  +         
            <map:match pattern="images/**.*">
               <map:select type="exists">
                  <map:when test="{project:content.xdocs}/images/{1}.{2}">
  @@ -116,24 +145,8 @@
                     <map:transform src="resources/stylesheets/project2text.xsl" />
                     <map:serialize type="svg2png" />
                  </map:when>
  -               <map:when test="{project:resources.images}/{1}.svg">
  -                  <map:generate src="{project:resources.images}/{1}.svg" />
  -                  <map:transform src="resources/stylesheets/project2text.xsl" />
  -                  <map:serialize type="svg2png" />
  -               </map:when>
  -               <map:when test="resources/images/{1}.svg">
  -                  <map:generate src="resources/images/{1}.svg" />
  -                  <map:transform src="resources/stylesheets/project2text.xsl" />
  -                  <map:serialize type="svg2png" />
  -               </map:when>
  -               <map:when test="{project:content.xdocs}/{1}.png">
  -                  <map:read src="{project:content.xdocs}/{1}.png" mime-type="image/png"
/>
  -               </map:when>
  -               <map:when test="resources/images/{1}.png">
  -                  <map:read src="resources/images/{1}.png" mime-type="image/png" />
  -               </map:when>
                  <map:otherwise>
  -                  <map:read src="{project:resources.images}/{1}.png" mime-type="image/png"
/>
  +                  <map:read src="{project:content.xdocs}/{1}.png" mime-type="image/png"
/>
                  </map:otherwise>
               </map:select>
            </map:match>
  @@ -141,7 +154,6 @@
            <map:match pattern="**favicon.ico">
               <map:call resource="skin-read">
                  <map:parameter name="path" value="images/favicon.ico" />
  -
                  <map:parameter name="mime-type" value="image/x-icon" />
               </map:call>
            </map:match>
  
  
  

Mime
View raw message