]> granicus.if.org Git - docbook-dsssl/commitdiff
fix missing class and id attributes on glossterm and glossdef.
authorBob Stayton <bobs@sagehill.net>
Tue, 22 Jan 2013 18:56:09 +0000 (18:56 +0000)
committerBob Stayton <bobs@sagehill.net>
Tue, 22 Jan 2013 18:56:09 +0000 (18:56 +0000)
xsl/html/glossary.xsl

index e7543026326128beeef1b9f982fc7f3759cc976d..5e9c3456823811b454291e996ed3dcd46bef7ad0 100644 (file)
@@ -242,7 +242,12 @@ GlossEntry ::=
 </xsl:template>
 
 <xsl:template match="glossentry/glossterm">
-  <xsl:apply-templates/>
+  <span>
+    <xsl:apply-templates select="." mode="common.html.attributes"/>
+    <xsl:call-template name="id.attribute"/>
+    <xsl:call-template name="anchor"/>
+    <xsl:apply-templates/>
+  </span>
   <xsl:if test="following-sibling::glossterm">, </xsl:if>
 </xsl:template>
 
@@ -318,6 +323,9 @@ GlossEntry ::=
 
 <xsl:template match="glossentry/glossdef">
   <dd>
+    <xsl:apply-templates select="." mode="common.html.attributes"/>
+    <xsl:call-template name="id.attribute"/>
+    <xsl:call-template name="anchor"/>
     <xsl:apply-templates select="*[local-name(.) != 'glossseealso']"/>
     <xsl:if test="glossseealso">
       <p>