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/skins/common/xslt/fo document2fo.xsl
Date Wed, 14 May 2003 03:46:51 GMT
jefft       2003/05/13 20:46:51

  Modified:    src/resources/skins/common/xslt/fo document2fo.xsl
  Log:
  Add more hackery so that ../images/foo.gif from a file in a subdirectory works
  
  Revision  Changes    Path
  1.11      +3 -1      xml-forrest/src/resources/skins/common/xslt/fo/document2fo.xsl
  
  Index: document2fo.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/skins/common/xslt/fo/document2fo.xsl,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- document2fo.xsl	14 Apr 2003 13:39:41 -0000	1.10
  +++ document2fo.xsl	14 May 2003 03:46:51 -0000	1.11
  @@ -521,7 +521,9 @@
         <!-- Make relative paths absolute -->
         <xsl:variable name="imgpath">
         <xsl:choose>
  -        <xsl:when test="starts-with(string(@src), 'images/')"><xsl:value-of select="concat($ctxbasedir,
'resources/' , @src)"/></xsl:when>
  +        <xsl:when test="starts-with(string(@src), 'images/') or contains(string(@src),
'../images')">
  +          <xsl:value-of select="concat($ctxbasedir, 'resources/images/' , substring-after(@src,
'images'))"/>
  +        </xsl:when>
           <xsl:otherwise><xsl:value-of select="concat($ctxbasedir, $xmlbasedir,
@src)"/></xsl:otherwise>
         </xsl:choose>
         </xsl:variable>
  
  
  

Mime
View raw message