]> granicus.if.org Git - docbook-dsssl/commitdiff
Support 'title.markup' on glossentry
authorNorman Walsh <ndw@nwalsh.com>
Thu, 8 May 2003 13:26:34 +0000 (13:26 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Thu, 8 May 2003 13:26:34 +0000 (13:26 +0000)
xsl/common/titles.xsl

index ae91ed71ad74877ac6b91785d593a56fc28c66cf..82764f42c28b4b6d3e9ab8468ab2c203a933f84b 100644 (file)
@@ -268,6 +268,26 @@ title of the element. This does not include the label.
   </xsl:choose>
 </xsl:template>
 
+<xsl:template match="glossentry" mode="title.markup">
+  <xsl:param name="allow-anchors" select="0"/>
+  <xsl:apply-templates select="glossterm" mode="title.markup">
+    <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
+  </xsl:apply-templates>
+</xsl:template>
+
+<xsl:template match="glossterm" mode="title.markup">
+  <xsl:param name="allow-anchors" select="0"/>
+
+  <xsl:choose>
+    <xsl:when test="$allow-anchors != 0">
+      <xsl:apply-templates/>
+    </xsl:when>
+    <xsl:otherwise>
+      <xsl:apply-templates mode="no.anchor.mode"/>
+    </xsl:otherwise>
+  </xsl:choose>
+</xsl:template>
+
 <xsl:template match="index" mode="title.markup">
   <xsl:param name="allow-anchors" select="0"/>
   <xsl:variable name="title" select="(indexinfo/title|title)[1]"/>