]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed bug # 1364478 xml:id not recognized by olink database.
authorBob Stayton <bobs@sagehill.net>
Thu, 29 Dec 2005 19:27:24 +0000 (19:27 +0000)
committerBob Stayton <bobs@sagehill.net>
Thu, 29 Dec 2005 19:27:24 +0000 (19:27 +0000)
xsl/common/targets.xsl

index 716a62fcabb5a04996bce4ce84ffceeebe279953..91e0818280209a591051fdc4b1c6441ea23b4377 100644 (file)
@@ -118,11 +118,18 @@ document output.
     </xsl:attribute>
   </xsl:if>
 
-  <xsl:if test="$nd/@id">
-    <xsl:attribute name="targetptr">
-      <xsl:value-of select="$nd/@id"/>
-    </xsl:attribute>
-  </xsl:if>
+  <xsl:choose>
+    <xsl:when test="$nd/@id">
+      <xsl:attribute name="targetptr">
+        <xsl:value-of select="$nd/@id"/>
+      </xsl:attribute>
+    </xsl:when>
+    <xsl:when test="$nd/@xml:id">
+      <xsl:attribute name="targetptr">
+        <xsl:value-of select="$nd/@xml:id"/>
+      </xsl:attribute>
+    </xsl:when>
+  </xsl:choose>
 
   <xsl:if test="$nd/@lang">
     <xsl:attribute name="lang">
@@ -255,7 +262,7 @@ document output.
 </xsl:template>
 
 <xsl:template match="*" mode="olink.mode">
-  <xsl:if test="@id">
+  <xsl:if test="@id or @xml:id">
     <xsl:call-template name="obj"/>
   </xsl:if> 
   <xsl:apply-templates mode="olink.mode"/>