]> granicus.if.org Git - docbook-dsssl/commitdiff
Bug #1066753 -- subtitle is severely broken (reported by Sam Steingold)
authorMichael Smith <xmldoc@users.sourceforge.net>
Fri, 19 Nov 2004 12:19:06 +0000 (12:19 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Fri, 19 Nov 2004 12:19:06 +0000 (12:19 +0000)
::PROBLEM
  In (X)HTML output, subtitle for the simplesect element generates an
  h2 head, no matter at what level in the sectioning hiearchy the
  simplesect occurs; end up with cases where a simplesect is
  output with (for example), an h4 title but a h2 subtitle

::CAUSE and FIX
  No template for simplesect/subtitle in the set of templates that
  call the section.subtitle named template, so stylesheets fell
  back to using the titlepage.mode template for subtitle

::FIX
  Added simplesect/subtitle to the set of templates that
  call the section.subtitle named template.

::AFFECTS
  Only affects (X)HTML output of simplesect/subtitle; nothing else

xsl/html/sections.xsl

index f113a9ecf218ac1e7755fd22fbcaafb8506bc703..f854c9c1aed37025b680e5b01bbf85556ef56dbe 100644 (file)
   <xsl:call-template name="section.subtitle"/>
 </xsl:template>
 
+<xsl:template match="simplesect/subtitle" mode="titlepage.mode" priority="2">
+  <xsl:call-template name="section.subtitle"/>
+</xsl:template>
+
 <xsl:template match="sect1/subtitle" mode="titlepage.mode" priority="2">
   <xsl:call-template name="section.subtitle"/>
 </xsl:template>