]> granicus.if.org Git - docbook-dsssl/commitdiff
Use fo-external-image (badly named) to wrap url() around external-destinations
authorNorman Walsh <ndw@nwalsh.com>
Thu, 19 Sep 2002 17:15:47 +0000 (17:15 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Thu, 19 Sep 2002 17:15:47 +0000 (17:15 +0000)
xsl/fo/xref.xsl

index d2444182238190911f1ed408707c6a1353aeacb8..8941e3ed8c1138f9380a7ab17ef300c8d76e8d87 100644 (file)
 </xsl:template>
 
 <xsl:template match="ulink" name="ulink">
-  <fo:basic-link external-destination="{@url}"
-                 xsl:use-attribute-sets="xref.properties">
+  <fo:basic-link xsl:use-attribute-sets="xref.properties">
+    <xsl:attribute name="external-destination">
+      <xsl:call-template name="fo-external-image">
+        <xsl:with-param name="filename" select="@url"/>
+      </xsl:call-template>
+    </xsl:attribute>
+
     <xsl:choose>
       <xsl:when test="count(child::node())=0">
         <xsl:call-template name="hyphenate-url">