<xsl:template match="emphasis">
<span>
<xsl:choose>
- <xsl:when test="@role and $emphasis.propagates.style != 0">
+ <!-- We don't want empty @class values, so do not propagate empty @roles -->
+ <xsl:when test="@role and
+ normalize-space(@role) != '' and
+ $emphasis.propagates.style != 0">
<xsl:apply-templates select="." mode="class.attribute">
<xsl:with-param name="class" select="@role"/>
</xsl:apply-templates>
<xsl:if test="@lang or @xml:lang">
<xsl:call-template name="language.attribute"/>
</xsl:if>
- <xsl:if test="@role and $phrase.propagates.style != 0">
+ <!-- We don't want empty @class values, so do not propagate empty @roles -->
+ <xsl:if test="@role and
+ normalize-space(@role) != '' and
+ $phrase.propagates.style != 0">
<xsl:apply-templates select="." mode="class.attribute">
<xsl:with-param name="class" select="@role"/>
</xsl:apply-templates>
<xsl:variable name="snum">
<xsl:apply-templates select="." mode="synopfragment.number"/>
</xsl:variable>
- <p>
+ <!-- You can't introduce another <p> here, because you're
+ already in a <p> from cmdsynopsis-->
+ <span>
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
</a>
<xsl:text> </xsl:text>
<xsl:apply-templates/>
- </p>
+ </span>
</xsl:template>
<xsl:template match="funcsynopsis">
</xsl:for-each>
</table>
<xsl:if test="paramdef">
- <blockquote class="paramdef-list">
+ <div class="paramdef-list">
<xsl:apply-templates select="paramdef" mode="kr-funcsynopsis-mode"/>
- </blockquote>
+ </div>
</xsl:if>
<div class="funcprototype-spacer"> </div> <!-- hACk: blank div for vertical spacing -->
</xsl:template>