]> granicus.if.org Git - docbook-dsssl/commitdiff
Problem::
authorMichael Smith <xmldoc@users.sourceforge.net>
Wed, 5 Oct 2005 07:23:19 +0000 (07:23 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Wed, 5 Oct 2005 07:23:19 +0000 (07:23 +0000)
In output of <xref endterm="foo"/> to top-level sections, titles
are not rendered in all caps.

Cause::
<xref endterm="foo"/> is handled in the HTML stylesheets by a
different mode than that used for normal Xref output.

Fix::
Added mode template for processing output of first-level section
titles when the are referred to via Endterm.

Closes #1215547. Thanks to Jens Granseuer for reporting the
problem.

xsl/manpages/refentry.xsl

index f3929f407fdfb3e59d94cbad5b4184ff92c0d1cb..a70a70e99b4837dea470cbb8251685bc85a74457 100644 (file)
     </xsl:call-template>
   </xsl:template>
 
+  <!-- * Output of Titles from Xref with Endterm needs to be handled -->
+  <!-- * separately from output for Endterm-less Xref -->
+  <xsl:template match="refsect1/title
+                       |refentry/refsection/title
+                       |refsynopsisdiv/title"
+                mode="endterm">
+    <xsl:call-template name="string.upper">
+      <xsl:with-param name="string">
+        <xsl:apply-templates/>
+      </xsl:with-param>
+    </xsl:call-template>
+  </xsl:template>
+
   <!-- * Use uppercase to render titles of all instances of Refsynopsisdiv, -->
   <!-- * including in cross-references -->
   <xsl:template match="refsynopsisdiv" mode="title.markup">