<xsl:template match="caution|important|note|tip|warning">
<xsl:call-template name="nested-section-title"/>
- <xsl:text> </xsl:text>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="formalpara">
<xsl:call-template name="nested-section-title"/>
- <xsl:text> </xsl:text>
<xsl:text>.RS 3 </xsl:text>
<xsl:apply-templates/>
<xsl:text>.RE </xsl:text>
</xsl:template>
<xsl:template match="address|literallayout|programlisting|screen|synopsis">
- <!-- Yes, address and synopsis are verbatim environments. -->
+ <!-- * Yes, address and synopsis are verbatim environments. -->
<xsl:choose>
- <!-- Check to see if this verbatim item is within a parent element that -->
- <!-- allows mixed content. -->
-
- <!-- If it is within a mixed-content parent, then a line break is -->
- <!-- already added before it by the mixed-block template, so we don't -->
- <!-- need to add one here. -->
-
- <!-- If it is not within a mixed-content parent, then we need to add a -->
- <!-- line break before it. -->
+ <!-- * Check to see if this verbatim item is within a parent element that -->
+ <!-- * allows mixed content. -->
+ <!-- * -->
+ <!-- * If it is within a mixed-content parent, then a line break is -->
+ <!-- * already added before it by the mixed-block template, so we don't -->
+ <!-- * need to add one here. -->
+ <!-- * -->
+ <!-- * If it is not within a mixed-content parent, then we need to add a -->
+ <!-- * line break before it. -->
<xsl:when test="parent::caption|parent::entry|parent::para|
parent::td|parent::th" /> <!-- do nothing -->
<xsl:otherwise>
******************************************************************** -->
+<xsl:param name="man.subheading.divider"
+>========================================================================</xsl:param>
+
<!-- ==================================================================== -->
<!-- * This file contains named and "non element" templates that are -->
</xsl:otherwise>
</xsl:choose></bold>
</xsl:variable>
+ <xsl:call-template name="mark.subheading"/>
<xsl:apply-templates mode="bold" select="exsl:node-set($title.wrapper)"/>
+ <xsl:text> </xsl:text>
+ <xsl:call-template name="mark.subheading"/>
</xsl:template>
-
+
<!-- ================================================================== -->
<!-- * The mixed-block template jumps through a few hoops to deal with -->
</xsl:choose>
</xsl:template>
+ <!-- ================================================================== -->
+
+ <!-- * Put a horizontal rule or other divider around section titles -->
+ <!-- * in roff source (just to make things easier to read). -->
+ <xsl:template name="mark.subheading">
+ <xsl:if test="$man.subheading.divider != ''">
+ <xsl:text>.\" </xsl:text>
+ <xsl:value-of select="$man.subheading.divider"/>
+ <xsl:text> </xsl:text>
+ </xsl:if>
+ </xsl:template>
+
</xsl:stylesheet>
<xsl:param name="extra2"/>
<xsl:param name="extra3"/>
+ <xsl:call-template name="mark.subheading"/>
<xsl:text>.TH "</xsl:text>
<xsl:call-template name="string.upper">
<xsl:with-param name="string">
<xsl:text>" "</xsl:text>
<xsl:value-of select="normalize-space($extra3)"/>
<xsl:text>" </xsl:text>
+ <xsl:call-template name="mark.subheading"/>
</xsl:template>
<!-- ============================================================== -->
<!ENTITY man.string.subst.map SYSTEM "../params/man.string.subst.map.xml">
<!ENTITY man.charmap.enabled SYSTEM "../params/man.charmap.enabled.xml">
<!ENTITY man.charmap.use.subset SYSTEM "../params/man.charmap.use.subset.xml">
+<!ENTITY man.charmap.uri SYSTEM "../params/man.charmap.uri.xml">
<!ENTITY man.charmap.subset.profile SYSTEM "../params/man.charmap.subset.profile.xml">
+<!ENTITY man.subheading.divider SYSTEM "../params/man.subheading.divider.xml">
<!ENTITY man.th.title.max.length SYSTEM "../params/man.th.title.max.length.xml">
-<!ENTITY man.charmap.uri SYSTEM "../params/man.charmap.uri.xml">
\ No newline at end of file
&man.output.quietly;
&man.output.encoding;
&man.string.subst.map;
+&man.subheading.divider;
&man.th.title.max.length;
</reference>
<reference id="charmap">
<src:fragref linkend="man.charmap.uri.frag"/>
<src:fragref linkend="man.charmap.use.subset.frag"/>
<src:fragref linkend="man.charmap.subset.profile.frag"/>
+<src:fragref linkend="man.subheading.divider.frag"/>
<src:fragref linkend="man.th.title.max.length.frag"/>
</xsl:stylesheet>
</src:fragment>
<!-- no title on secondary refnamedivs! -->
</xsl:when>
<xsl:otherwise>
+ <xsl:call-template name="mark.subheading"/>
<xsl:text>.SH "</xsl:text>
<xsl:call-template name="string.upper">
<xsl:with-param name="string">
</xsl:otherwise>
</xsl:choose>
<xsl:text> </xsl:text>
+ <xsl:call-template name="mark.subheading"/>
<xsl:for-each select="refname">
<xsl:if test="position()>1">
<xsl:text>, </xsl:text>
</xsl:template>
<xsl:template match="refsynopsisdiv">
+ <xsl:call-template name="mark.subheading"/>
<xsl:text>.SH "</xsl:text>
<xsl:call-template name="string.upper">
<xsl:with-param name="string">
</xsl:with-param>
</xsl:call-template>
<xsl:text>" </xsl:text>
+ <xsl:call-template name="mark.subheading"/>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="refsect1|refentry/refsection">
+ <xsl:call-template name="mark.subheading"/>
<xsl:text>.SH "</xsl:text>
<xsl:call-template name="string.upper">
<xsl:with-param name="string" select="title"/>
</xsl:call-template>
<xsl:text>" </xsl:text>
+ <xsl:call-template name="mark.subheading"/>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="refsect2|refentry/refsection/refsection">
+ <xsl:call-template name="mark.subheading"/>
<xsl:text>.SS "</xsl:text>
<xsl:value-of select="title[1]"/>
<xsl:text>" </xsl:text>
+ <xsl:call-template name="mark.subheading"/>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="refsect3|refsection">
<xsl:call-template name="nested-section-title"/>
- <xsl:text> </xsl:text>
<xsl:text>.RS 3 </xsl:text>
<xsl:apply-templates/>
<xsl:text>.RE </xsl:text>