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/stylesheets filterlinks.xsl
Date Sun, 18 May 2003 10:53:34 GMT
jefft       2003/05/18 03:53:34

  Modified:    src/resources/stylesheets filterlinks.xsl
  Log:
  Reorder tests in the order they are most likely to be encountered
  
  Revision  Changes    Path
  1.8       +5 -7      xml-forrest/src/resources/stylesheets/filterlinks.xsl
  
  Index: filterlinks.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/stylesheets/filterlinks.xsl,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- filterlinks.xsl	18 May 2003 10:21:40 -0000	1.7
  +++ filterlinks.xsl	18 May 2003 10:53:34 -0000	1.8
  @@ -20,22 +20,20 @@
     <xsl:template match="@src|@href|@background">
   
       <xsl:choose>
  -      <xsl:when test="starts-with(., $ctxbasedir)">
  -        <xsl:message>Ignoring absolute PDF link: <xsl:value-of select="."/></xsl:message>
  -        <!-- Ignore absolute image paths used in PDFs from being rendered. This
  -        will go away when the FOP-Cocoon link improves -->
  -      </xsl:when>
         <xsl:when test="contains(., 'apidocs')">
           <xsl:message>Ignoring javadoc link: <xsl:value-of select="."/></xsl:message>
  -        <!-- Ignore refs to Javadocs (links containing 'apidocs') -->
         </xsl:when>
         <xsl:when test="contains(., 'api/')">
           <xsl:message>Ignoring javadoc link: <xsl:value-of select="."/></xsl:message>
  -        <!-- Ignore refs to Javadocs ('api/' prefix) -->
         </xsl:when>
         <xsl:when test="not(contains(., ':')) and substring(., string-length(.)) = '/'">
           <xsl:message>Ignoring directory link: <xsl:value-of select="."/></xsl:message>
           <!-- Don't try to render links to local directories (that end with '/'). -->
  +      </xsl:when>
  +      <xsl:when test="starts-with(., $ctxbasedir)">
  +        <xsl:message>Ignoring absolute PDF link: <xsl:value-of select="."/></xsl:message>
  +        <!-- Ignore absolute image paths used in PDFs from being rendered. This
  +        will go away when the FOP-Cocoon link improves -->
         </xsl:when>
         <xsl:otherwise>
           <xsl:copy>
  
  
  

Mime
View raw message