]> granicus.if.org Git - docbook-dsssl/commitdiff
Add title.markup mode for glossdiv to support info/title.
authorBob Stayton <bobs@sagehill.net>
Sat, 6 Jan 2007 18:25:09 +0000 (18:25 +0000)
committerBob Stayton <bobs@sagehill.net>
Sat, 6 Jan 2007 18:25:09 +0000 (18:25 +0000)
xsl/common/titles.xsl

index 3ec4bc376c3479bc9641f606eda97eb9af4809de..2b868d9407fd5df267c220e2b14d29d74976f424 100644 (file)
@@ -307,6 +307,21 @@ title of the element. This does not include the label.
   </xsl:choose>
 </xsl:template>
 
+<xsl:template match="glossdiv" mode="title.markup">
+  <xsl:param name="allow-anchors" select="0"/>
+  <xsl:variable name="title" select="(info/title|title)[1]"/>
+  <xsl:choose>
+    <xsl:when test="$title">
+      <xsl:apply-templates select="$title" mode="title.markup">
+        <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
+      </xsl:apply-templates>
+    </xsl:when>
+    <xsl:otherwise>
+      <xsl:message>ERROR: glossdiv missing its required title</xsl:message>
+    </xsl:otherwise>
+  </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">