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 relativize-linkmap.xsl
Date Sun, 15 Jun 2003 08:29:01 GMT
jefft       2003/06/15 01:29:01

  Modified:    src/resources/stylesheets relativize-linkmap.xsl
  Log:
  Get images in PDFs working again. They were being converted to external links.
  
  Revision  Changes    Path
  1.4       +8 -2      xml-forrest/src/resources/stylesheets/relativize-linkmap.xsl
  
  Index: relativize-linkmap.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/stylesheets/relativize-linkmap.xsl,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- relativize-linkmap.xsl	9 Jun 2003 10:27:40 -0000	1.3
  +++ relativize-linkmap.xsl	15 Jun 2003 08:29:01 -0000	1.4
  @@ -14,7 +14,7 @@
     </community>
   </site>
   
  -if $path was 'community/', then '../' would be added to each href:
  +if $path was 'community/index.html', then '../' would be added to each href:
   
   <site href="../">
     <community href="../community/">
  @@ -63,7 +63,13 @@
             <xsl:value-of select="."/>
           </xsl:when>
   
  -        <xsl:when test="contains($path, '.pdf')">
  +        <!-- PDFs can handle inline images, but everything else must become an
  +        external link -->
  +        <xsl:when test="contains($path, '.pdf') and not(
  +        contains(., '.png') or
  +        contains(., '.jpeg') or
  +        contains(., '.jpg') or
  +        contains(., '.tif'))">
   
             <!-- Links to outside a PDF are all absolute -->
             <xsl:value-of select="concat($site-root, .)"/>
  
  
  

Mime
View raw message