]> granicus.if.org Git - docbook-dsssl/commitdiff
Support title.markup for legal notices
authorNorman Walsh <ndw@nwalsh.com>
Sat, 22 Sep 2001 19:56:33 +0000 (19:56 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Sat, 22 Sep 2001 19:56:33 +0000 (19:56 +0000)
xsl/common/titles.xsl

index 52dc7038be658eb0df1e289aa9797f113d88e58a..ab204d83820b7102128092ee8efd85cd6db8977e 100644 (file)
@@ -324,6 +324,22 @@ title of the element. This does not include the label.
   <xsl:text>Question</xsl:text>
 </xsl:template>
 
+<xsl:template match="legalnotice" mode="title.markup">
+  <xsl:param name="allow-anchors" select="'0'"/>
+  <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:call-template name="gentext">
+        <xsl:with-param name="key" select="'LegalNotice'"/>
+      </xsl:call-template>
+    </xsl:otherwise>
+  </xsl:choose>
+</xsl:template>
+
 <!-- ============================================================ -->
 
 <xsl:template match="*" mode="no.anchor.mode">