</xsl:if>
</xsl:variable>
- <b>
- <xsl:copy-of select="$titleStr"/>
- <xsl:if test="$lastChar != ''
- and not(contains($runinhead.title.end.punct, $lastChar))">
- <xsl:value-of select="$runinhead.default.title.end.punct"/>
- </xsl:if>
- <xsl:text> </xsl:text>
- </b>
+ <xsl:choose>
+ <xsl:when test="$make.clean.html != 0">
+ <span class="formalpara-title">
+ <xsl:copy-of select="$titleStr"/>
+ <xsl:if test="$lastChar != ''
+ and not(contains($runinhead.title.end.punct, $lastChar))">
+ <xsl:value-of select="$runinhead.default.title.end.punct"/>
+ </xsl:if>
+ <xsl:text> </xsl:text>
+ </span>
+ </xsl:when>
+ <xsl:otherwise>
+ <b>
+ <xsl:copy-of select="$titleStr"/>
+ <xsl:if test="$lastChar != ''
+ and not(contains($runinhead.title.end.punct, $lastChar))">
+ <xsl:value-of select="$runinhead.default.title.end.punct"/>
+ </xsl:if>
+ <xsl:text> </xsl:text>
+ </b>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:template>
<xsl:template match="formalpara/para">
</xsl:template>
<xsl:template match="blockquote/title|blockquote/info/title">
- <div class="blockquote-title">
- <p>
- <b>
+ <xsl:choose>
+ <xsl:when test="$make.clean.html != 0">
+ <div class="blockquote-title">
<xsl:apply-templates/>
- </b>
- </p>
- </div>
+ </div>
+ </xsl:when>
+ <xsl:otherwise>
+ <div class="blockquote-title">
+ <p>
+ <b>
+ <xsl:apply-templates/>
+ </b>
+ </p>
+ </div>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:template>
<!-- Use an em dash per Chicago Manual of Style and https://sourceforge.net/tracker/index.php?func=detail&aid=2793878&group_id=21935&atid=373747 -->
</xsl:template>
<xsl:template match="msgmain/title">
- <b><xsl:apply-templates/></b>
+ <xsl:choose>
+ <xsl:when test="$make.clean.html != 0">
+ <span class="msgmain-title">
+ <xsl:apply-templates/>
+ </span>
+ </xsl:when>
+ <xsl:otherwise>
+ <b><xsl:apply-templates/></b>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:template>
<xsl:template match="msgsub">
</xsl:template>
<xsl:template match="msgsub/title">
- <b><xsl:apply-templates/></b>
+ <xsl:choose>
+ <xsl:when test="$make.clean.html != 0">
+ <span class="msgsub-title">
+ <xsl:apply-templates/>
+ </span>
+ </xsl:when>
+ <xsl:otherwise>
+ <b><xsl:apply-templates/></b>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:template>
<xsl:template match="msgrel">
</xsl:template>
<xsl:template match="msgrel/title">
- <b><xsl:apply-templates/></b>
+ <xsl:choose>
+ <xsl:when test="$make.clean.html != 0">
+ <span class="msgrel-title">
+ <xsl:apply-templates/>
+ </span>
+ </xsl:when>
+ <xsl:otherwise>
+ <b><xsl:apply-templates/></b>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:template>
<xsl:template match="msgtext">
</xsl:template>
<xsl:template match="msglevel">
- <p>
- <b>
- <xsl:call-template name="gentext.template">
- <xsl:with-param name="context" select="'msgset'"/>
- <xsl:with-param name="name" select="'MsgLevel'"/>
- </xsl:call-template>
- </b>
- <xsl:apply-templates/>
- </p>
+ <xsl:choose>
+ <xsl:when test="$make.clean.html != 0">
+ <div class="msglevel">
+ <span class="msglevel-title">
+ <xsl:call-template name="gentext.template">
+ <xsl:with-param name="context" select="'msgset'"/>
+ <xsl:with-param name="name" select="'MsgLevel'"/>
+ </xsl:call-template>
+ </span>
+ <xsl:apply-templates/>
+ </div>
+ </xsl:when>
+ <xsl:otherwise>
+ <p>
+ <b>
+ <xsl:call-template name="gentext.template">
+ <xsl:with-param name="context" select="'msgset'"/>
+ <xsl:with-param name="name" select="'MsgLevel'"/>
+ </xsl:call-template>
+ </b>
+ <xsl:apply-templates/>
+ </p>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:template>
<xsl:template match="msgorig">
- <p>
- <b>
- <xsl:call-template name="gentext.template">
- <xsl:with-param name="context" select="'msgset'"/>
- <xsl:with-param name="name" select="'MsgOrig'"/>
- </xsl:call-template>
- </b>
- <xsl:apply-templates/>
- </p>
+ <xsl:choose>
+ <xsl:when test="$make.clean.html != 0">
+ <div class="msgorig">
+ <span class="msgorig-title">
+ <xsl:call-template name="gentext.template">
+ <xsl:with-param name="context" select="'msgset'"/>
+ <xsl:with-param name="name" select="'MsgOrig'"/>
+ </xsl:call-template>
+ </span>
+ <xsl:apply-templates/>
+ </div>
+ </xsl:when>
+ <xsl:otherwise>
+ <p>
+ <b>
+ <xsl:call-template name="gentext.template">
+ <xsl:with-param name="context" select="'msgset'"/>
+ <xsl:with-param name="name" select="'MsgOrig'"/>
+ </xsl:call-template>
+ </b>
+ <xsl:apply-templates/>
+ </p>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:template>
<xsl:template match="msgaud">
- <p>
- <b>
- <xsl:call-template name="gentext.template">
- <xsl:with-param name="context" select="'msgset'"/>
- <xsl:with-param name="name" select="'MsgAud'"/>
- </xsl:call-template>
- </b>
- <xsl:apply-templates/>
- </p>
+ <xsl:choose>
+ <xsl:when test="$make.clean.html != 0">
+ <div class="msgaud">
+ <span class="msgaud-title">
+ <xsl:call-template name="gentext.template">
+ <xsl:with-param name="context" select="'msgset'"/>
+ <xsl:with-param name="name" select="'MsgAud'"/>
+ </xsl:call-template>
+ </span>
+ <xsl:apply-templates/>
+ </div>
+ </xsl:when>
+ <xsl:otherwise>
+ <p>
+ <b>
+ <xsl:call-template name="gentext.template">
+ <xsl:with-param name="context" select="'msgset'"/>
+ <xsl:with-param name="name" select="'MsgAud'"/>
+ </xsl:call-template>
+ </b>
+ <xsl:apply-templates/>
+ </p>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:template>
<xsl:template match="msgexplan">
</xsl:template>
<xsl:template match="msgexplan/title">
- <p><b><xsl:apply-templates/></b></p>
+ <xsl:choose>
+ <xsl:when test="$make.clean.html != 0">
+ <div class="msgexplan">
+ <span class="msgexplan-title">
+ <xsl:apply-templates/>
+ </span>
+ </div>
+ </xsl:when>
+ <xsl:otherwise>
+ <p>
+ <b>
+ <xsl:apply-templates/>
+ </b>
+ </p>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:template>
<!-- ==================================================================== -->