<xsl:choose>
<xsl:when test="@inheritnum='inherit' and ancestor::listitem[parent::orderedlist]">
- <table border="0">
- <col align="{$direction.align.start}" valign="top"/>
+ <table border="0">
+ <col align="{$direction.align.start}" valign="top"/>
<tbody>
- <xsl:apply-templates
- mode="orderedlist-table"
- select="listitem
- |comment()[preceding-sibling::listitem]
- |processing-instruction()[preceding-sibling::listitem]"/>
+ <xsl:apply-templates
+ mode="orderedlist-table"
+ select="listitem
+ |comment()[preceding-sibling::listitem]
+ |processing-instruction()[preceding-sibling::listitem]"/>
</tbody>
</table>
</xsl:when>
<xsl:otherwise>
- <ol>
- <xsl:if test="$start != '1'">
- <xsl:attribute name="start">
- <xsl:value-of select="$start"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="$numeration != ''">
- <xsl:attribute name="type">
- <xsl:value-of select="$type"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="@spacing='compact'">
- <xsl:attribute name="compact">
- <xsl:value-of select="@spacing"/>
- </xsl:attribute>
- </xsl:if>
- <xsl:apply-templates
- select="listitem
- |comment()[preceding-sibling::listitem]
- |processing-instruction()[preceding-sibling::listitem]"/>
- </ol>
+ <ol>
+ <xsl:if test="$start != '1'">
+ <xsl:attribute name="start">
+ <xsl:value-of select="$start"/>
+ </xsl:attribute>
+ </xsl:if>
+ <xsl:if test="$numeration != ''">
+ <xsl:attribute name="type">
+ <xsl:value-of select="$type"/>
+ </xsl:attribute>
+ </xsl:if>
+ <xsl:if test="@spacing='compact'">
+ <xsl:attribute name="compact">
+ <xsl:value-of select="@spacing"/>
+ </xsl:attribute>
+ </xsl:if>
+ <xsl:apply-templates
+ select="listitem
+ |comment()[preceding-sibling::listitem]
+ |processing-instruction()[preceding-sibling::listitem]"/>
+ </ol>
</xsl:otherwise>
</xsl:choose>
</div>
</td>
<td>
<xsl:if test="local-name(child::*[1]) != 'para'">
- <xsl:call-template name="anchor"/>
+ <xsl:call-template name="anchor"/>
</xsl:if>
<xsl:choose>
- <xsl:when test="$show.revisionflag != 0 and @revisionflag">
- <div class="{@revisionflag}">
- <xsl:apply-templates/>
- </div>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates/>
- </xsl:otherwise>
+ <xsl:when test="$show.revisionflag != 0 and @revisionflag">
+ <div class="{@revisionflag}">
+ <xsl:apply-templates/>
+ </div>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates/>
+ </xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:template>
<xsl:template match="varlistentry/term">
- <span class="term">
+ <span>
+ <xsl:apply-templates select="." mode="class.attribute"/>
<xsl:call-template name="anchor"/>
<xsl:call-template name="simple.xlink">
<xsl:with-param name="content">
<xsl:template match="simplelist">
<!-- with no type specified, the default is 'vert' -->
<xsl:call-template name="anchor"/>
- <table class="simplelist" border="0" summary="Simple list">
+ <table border="0" summary="Simple list">
+ <xsl:apply-templates select="." mode="class.attribute"/>
<xsl:call-template name="simplelist.vert">
<xsl:with-param name="cols">
<xsl:choose>
<xsl:choose>
<xsl:when test="position() = last()"/> <!-- do nothing -->
<xsl:otherwise>
- <xsl:text>, </xsl:text>
- <xsl:if test="position() = last() - 1">
- <xsl:if test="$localized-choice-separator != ''">
- <xsl:value-of select="$localized-choice-separator"/>
- <xsl:text> </xsl:text>
- </xsl:if>
- </xsl:if>
+ <xsl:text>, </xsl:text>
+ <xsl:if test="position() = last() - 1">
+ <xsl:if test="$localized-choice-separator != ''">
+ <xsl:value-of select="$localized-choice-separator"/>
+ <xsl:text> </xsl:text>
+ </xsl:if>
+ </xsl:if>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
<xsl:template match="simplelist[@type='horiz']">
<xsl:call-template name="anchor"/>
- <table class="simplelist" border="0" summary="Simple list">
+ <table border="0" summary="Simple list">
+ <xsl:apply-templates select="." mode="class.attribute"/>
<xsl:call-template name="simplelist.horiz">
<xsl:with-param name="cols">
<xsl:choose>
<xsl:template match="simplelist[@type='vert']">
<xsl:call-template name="anchor"/>
- <table class="simplelist" border="0" summary="Simple list">
+ <table border="0" summary="Simple list">
+ <xsl:apply-templates select="." mode="class.attribute"/>
<xsl:call-template name="simplelist.vert">
<xsl:with-param name="cols">
<xsl:choose>
<xsl:call-template name="anchor">
<xsl:with-param name="conditional">
<xsl:choose>
- <xsl:when test="title">0</xsl:when>
- <xsl:otherwise>1</xsl:otherwise>
- </xsl:choose>
+ <xsl:when test="title">0</xsl:when>
+ <xsl:otherwise>1</xsl:otherwise>
+ </xsl:choose>
</xsl:with-param>
</xsl:call-template>
</xsl:template>
<xsl:template match="step/title">
- <p class="title">
+ <p>
+ <xsl:apply-templates select="." mode="class.attribute"/>
<b>
<xsl:apply-templates/>
</b>
</xsl:template>
<xsl:template match="segmentedlist/title">
- <div class="title">
- <strong><span class="title"><xsl:apply-templates/></span></strong>
+ <div>
+ <xsl:apply-templates select="." mode="class.attribute"/>
+ <strong>
+ <span>
+ <xsl:apply-templates select="." mode="class.attribute"/>
+ <xsl:apply-templates/>
+ </span>
+ </strong>
</div>
</xsl:template>
</xsl:template>
<xsl:template match="seglistitem">
- <div class="seglistitem">
+ <div>
+ <xsl:apply-templates select="." mode="class.attribute"/>
<xsl:call-template name="anchor"/>
<xsl:apply-templates/>
</div>
you'll get something odd...maybe an error
-->
- <div class="seg">
+ <div>
+ <xsl:apply-templates select="." mode="class.attribute"/>
<strong>
<span class="segtitle">
<xsl:apply-templates select="$segtitles[$segnum=position()]"
<xsl:number from="segmentedlist" count="seglistitem"/>
</xsl:variable>
- <tr class="seglistitem">
+ <tr>
+ <xsl:apply-templates select="." mode="class.attribute"/>
<xsl:call-template name="tr.attributes">
<xsl:with-param name="rownum" select="$seglinum + 1"/>
</xsl:call-template>
</xsl:template>
<xsl:template match="seg" mode="seglist-table">
- <td class="seg"><xsl:apply-templates/></td>
+ <td>
+ <xsl:apply-templates select="." mode="class.attribute"/>
+ <xsl:apply-templates/>
+ </td>
</xsl:template>
<xsl:template match="seg[1]" mode="seglist-table">
- <td class="seg">
+ <td>
+ <xsl:apply-templates select="." mode="class.attribute"/>
<xsl:call-template name="anchor">
<xsl:with-param name="node" select="ancestor::seglistitem"/>
</xsl:call-template>
<xsl:apply-templates
select="*[not(self::callout or self::title or self::titleabbrev)]
|comment()[not(preceding-sibling::callout)]
- |processing-instruction()[not(preceding-sibling::callout)]"/>
+ |processing-instruction()[not(preceding-sibling::callout)]"/>
<xsl:choose>
<xsl:when test="$callout.list.table != 0">
<table border="0" summary="Callout list">
- <xsl:apply-templates select="callout
- |comment()[preceding-sibling::callout]
- |processing-instruction()[preceding-sibling::callout]"/>
- </table>
+ <xsl:apply-templates select="callout
+ |comment()[preceding-sibling::callout]
+ |processing-instruction()[preceding-sibling::callout]"/>
+ </table>
</xsl:when>
<xsl:otherwise>
- <dl compact="compact">
- <xsl:apply-templates select="callout
- |comment()[preceding-sibling::callout]
- |processing-instruction()[preceding-sibling::callout]"/>
- </dl>
+ <dl compact="compact">
+ <xsl:apply-templates select="callout
+ |comment()[preceding-sibling::callout]
+ |processing-instruction()[preceding-sibling::callout]"/>
+ </dl>
</xsl:otherwise>
</xsl:choose>
</div>