]> granicus.if.org Git - docbook-dsssl/commitdiff
URIs that start with '/' are absolute too
authorNorman Walsh <ndw@nwalsh.com>
Thu, 28 Jun 2007 17:01:22 +0000 (17:01 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Thu, 28 Jun 2007 17:01:22 +0000 (17:01 +0000)
xsl/fo/graphics.xsl

index 301d80031e15a7c57dec8e8414042ad465ca36df..d976c7601fa5d52e34d663c405bea9ecc5fb68d6 100644 (file)
 <xsl:template match="@fileref">
   <!-- need a check for absolute urls -->
   <xsl:choose>
-    <xsl:when test="contains(., ':')">
-      <!-- it has a uri scheme so it is an absolute uri -->
+    <xsl:when test="contains(., ':') or starts-with(.,'/')">
+      <!-- it has a uri scheme or starts with '/', so it is an absolute uri -->
       <xsl:value-of select="."/>
     </xsl:when>
     <xsl:when test="$keep.relative.image.uris != 0">