]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed duplicate id bug in coref.
authorBob Stayton <bobs@sagehill.net>
Sun, 13 Jul 2003 00:34:42 +0000 (00:34 +0000)
committerBob Stayton <bobs@sagehill.net>
Sun, 13 Jul 2003 00:34:42 +0000 (00:34 +0000)
xsl/fo/callout.xsl

index 6be86edaaafebba9bb66a0a516fbd656d5003566..16bd661cd0dcf5481644fa27a4a2c9ee3b5edcf3 100644 (file)
@@ -94,6 +94,7 @@
   <!-- "over there" as if it were "right here" -->
 
   <xsl:variable name="co" select="key('id', @linkend)"/>
+  <xsl:variable name="id" select="@id"/>
   <xsl:choose>
     <xsl:when test="not($co)">
       <xsl:message>
       </xsl:message>
     </xsl:when>
     <xsl:otherwise>
-      <xsl:apply-templates select="$co"/>
+      <fo:inline>
+        <xsl:if test="$id != ''">
+         <xsl:attribute name="id">
+           <xsl:value-of select="$id"/>
+         </xsl:attribute>
+       </xsl:if>
+        <xsl:apply-templates select="$co" mode="callout-bug"/>
+      </fo:inline>
     </xsl:otherwise>
   </xsl:choose>
 </xsl:template>