]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed bug 1545377 xml:id not supported in glossary.xsl.
authorBob Stayton <bobs@sagehill.net>
Thu, 24 Aug 2006 08:20:57 +0000 (08:20 +0000)
committerBob Stayton <bobs@sagehill.net>
Thu, 24 Aug 2006 08:20:57 +0000 (08:20 +0000)
xsl/fo/glossary.xsl
xsl/html/glossary.xsl

index 179f9e3096585d514a294eb1b04ce00e8169ff9e..a90be8eadcdcc656e1d35f7bb15cd480597b100e 100644 (file)
@@ -642,7 +642,7 @@ GlossEntry ::=
 
 <xsl:template match="glossentry/glosssee" mode="glossary.as.list">
   <xsl:variable name="otherterm" select="@otherterm"/>
-  <xsl:variable name="targets" select="//node()[@id=$otherterm]"/>
+  <xsl:variable name="targets" select="key('id', $otherterm)"/>
   <xsl:variable name="target" select="$targets[1]"/>
 
   <fo:block>
@@ -711,7 +711,7 @@ GlossEntry ::=
 
 <xsl:template match="glossseealso" mode="glossary.as.list">
   <xsl:variable name="otherterm" select="@otherterm"/>
-  <xsl:variable name="targets" select="//node()[@id=$otherterm]"/>
+  <xsl:variable name="targets" select="key('id', $otherterm)"/>
   <xsl:variable name="target" select="$targets[1]"/>
 
   <xsl:choose>
@@ -846,7 +846,7 @@ GlossEntry ::=
 
 <xsl:template match="glossentry/glosssee" mode="glossary.as.blocks">
   <xsl:variable name="otherterm" select="@otherterm"/>
-  <xsl:variable name="targets" select="//node()[@id=$otherterm]"/>
+  <xsl:variable name="targets" select="key('id', $otherterm)"/>
   <xsl:variable name="target" select="$targets[1]"/>
 
   <xsl:variable name="template">
@@ -919,7 +919,7 @@ GlossEntry ::=
 
 <xsl:template match="glossseealso" mode="glossary.as.blocks">
   <xsl:variable name="otherterm" select="@otherterm"/>
-  <xsl:variable name="targets" select="//node()[@id=$otherterm]"/>
+  <xsl:variable name="targets" select="key('id', $otherterm)"/>
   <xsl:variable name="target" select="$targets[1]"/>
 
   <xsl:choose>
index 8ca0223b59bc04876f15a92a1082f22256519880..47f19f58aed2ddae68ab77456e31d9dd0c51a8ba 100644 (file)
@@ -186,7 +186,7 @@ GlossEntry ::=
 
 <xsl:template match="glossentry/glosssee">
   <xsl:variable name="otherterm" select="@otherterm"/>
-  <xsl:variable name="targets" select="//node()[@id=$otherterm]"/>
+  <xsl:variable name="targets" select="key('id', $otherterm)"/>
   <xsl:variable name="target" select="$targets[1]"/>
 
   <dd>
@@ -257,7 +257,7 @@ GlossEntry ::=
 
 <xsl:template match="glossseealso">
   <xsl:variable name="otherterm" select="@otherterm"/>
-  <xsl:variable name="targets" select="//node()[@id=$otherterm]"/>
+  <xsl:variable name="targets" select="key('id', $otherterm)"/>
   <xsl:variable name="target" select="$targets[1]"/>
 
   <xsl:choose>