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/aggregates relativize-split-linkmap.xsl
Date Sun, 15 Jun 2003 12:32:27 GMT
jefft       2003/06/15 05:32:26

  Modified:    src/resources/stylesheets/aggregates
                        relativize-split-linkmap.xsl
  Log:
  Make images inline in the aggregate PDF
  
  Revision  Changes    Path
  1.4       +9 -0      xml-forrest/src/resources/stylesheets/aggregates/relativize-split-linkmap.xsl
  
  Index: relativize-split-linkmap.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/stylesheets/aggregates/relativize-split-linkmap.xsl,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- relativize-split-linkmap.xsl	9 Jun 2003 12:52:50 -0000	1.3
  +++ relativize-split-linkmap.xsl	15 Jun 2003 12:32:26 -0000	1.4
  @@ -64,11 +64,20 @@
           <xsl:when test="starts-with(., 'http:') or starts-with(., 'https:')">
             <xsl:value-of select="."/>
           </xsl:when>
  +        <xsl:when test="contains(., '.png') or
  +          contains(., '.jpeg') or
  +          contains(., '.jpg') or
  +          contains(., '.tif')">
  +          <!-- Image links are always relative -->
  +          <xsl:value-of select="$root"/><xsl:value-of select="."/>
  +        </xsl:when>
   
           <xsl:when test="$tab='' or ../@tab=$tab">
             <xsl:value-of select="concat('#', .)"/>
           </xsl:when>
   
  +        <!-- PDFs can handle inline images, but everything else must become an
  +        external link -->
           <xsl:when test="contains($path, '.pdf')">
   
             <!-- Links to outside a PDF are all absolute -->
  
  
  

Mime
View raw message