cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: xml-cocoon2/documentation/stylesheets filterlinks.xsl
Date Thu, 18 Oct 2001 15:48:07 GMT
cziegeler    01/10/18 08:48:07

  Modified:    documentation sitemap.xmap
               documentation/stylesheets filterlinks.xsl
  Log:
  Finished documentation build system.
  The filterlinks.xsl contains now some logic which filters images
  using javascript. This is a small hack, but it works.
  I added the quality parameter to the svg serializer so he
  does not complain about it any more.
  
  Revision  Changes    Path
  1.22      +3 -1      xml-cocoon2/documentation/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/documentation/sitemap.xmap,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- sitemap.xmap	2001/10/18 13:22:58	1.21
  +++ sitemap.xmap	2001/10/18 15:48:07	1.22
  @@ -27,7 +27,9 @@
      </map:serializer>
      <map:serializer name="xml"    mime-type="text/xml"         src="org.apache.cocoon.serialization.XMLSerializer"/>
      <map:serializer name="links"                               src="org.apache.cocoon.serialization.LinkSerializer"/>
  -   <map:serializer name="svg2jpeg" mime-type="image/jpeg"     src="org.apache.cocoon.serialization.SVGSerializer"/>
  +   <map:serializer name="svg2jpeg" mime-type="image/jpeg"     src="org.apache.cocoon.serialization.SVGSerializer">
  +       <parameter name="quality" type="float" value="1.0"/>
  +   </map:serializer>
      <map:serializer name="svg2png" mime-type="image/png"       src="org.apache.cocoon.serialization.SVGSerializer"/>
     </map:serializers>
   
  
  
  
  1.2       +17 -0     xml-cocoon2/documentation/stylesheets/filterlinks.xsl
  
  Index: filterlinks.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/documentation/stylesheets/filterlinks.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- filterlinks.xsl	2001/10/02 08:31:56	1.1
  +++ filterlinks.xsl	2001/10/18 15:48:07	1.2
  @@ -16,6 +16,23 @@
       </xsl:if>
     </xsl:template>
   
  +  <!-- This is a hack which makes the javascript images work -->
  +  <xsl:template match="img[@onLoad and starts-with(@src, 'graphics')]">
  +      <img src="{@src}"/>
  +      <img>
  +        <xsl:attribute name="src">
  +          <xsl:value-of select="substring-before(@src, '.')"/>_over.<xsl:value-of
select="substring-after(@src, '.')"/>
  +        </xsl:attribute>
  +      </img>
  +  </xsl:template>
  +
  +  <xsl:template match="img[@onLoad and starts-with(@src, 'images') and contains(@src,
'-lo.gif')]">
  +      <img src="{@src}"/>
  +      <img>
  +        <xsl:attribute name="src"><xsl:value-of select="substring-before(@src,
'-lo.gif')"/>-hi.gif</xsl:attribute>
  +      </img>
  +  </xsl:template>
  +
     <xsl:template match="@*|node()">
      <xsl:copy>
       <xsl:apply-templates select="@*|node()"/>
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message