]> granicus.if.org Git - docbook-dsssl/commitdiff
Fix url() in callout graphics
authorNorman Walsh <ndw@nwalsh.com>
Mon, 6 May 2002 22:29:33 +0000 (22:29 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Mon, 6 May 2002 22:29:33 +0000 (22:29 +0000)
xsl/fo/callout.xsl

index c40fe3d59041c19c2b241651d3c6467cf3690c37..e6f9935a5bb1fe68bfe28135f41ec13084e85e11 100644 (file)
     <!-- Draw callouts as images -->
     <xsl:when test="$callout.graphics != '0'
                     and $conum &lt;= $callout.graphics.number.limit">
-      <fo:external-graphic
-          src="{$callout.graphics.path}{$conum}{$callout.graphics.extension}"/>
+      <xsl:variable name="filename"
+                    select="concat($callout.graphics.path,$conum,$callout.graphics.extension)"/>
+
+      <fo:external-graphic>
+        <xsl:attribute name="src">
+          <xsl:choose>
+            <xsl:when test="$passivetex.extensions != 0
+                            or $fop.extensions != 0
+                            or $arbortext.extensions != 0">
+              <xsl:value-of select="$filename"/>
+            </xsl:when>
+            <xsl:otherwise>
+              <xsl:text>url(</xsl:text>
+              <xsl:value-of select="$filename"/>
+              <xsl:text>)</xsl:text>
+            </xsl:otherwise>
+          </xsl:choose>
+        </xsl:attribute>
+      </fo:external-graphic>
     </xsl:when>
 
     <xsl:when test="$callout.unicode != 0