and change align="right" to use $direction.align.end instead.
</xsl:attribute>
</img>
</td>
- <th align="left">
+ <th align="{$direction.align.start}">
<xsl:call-template name="anchor"/>
<xsl:if test="$admon.textlabel != 0 or title or info/title">
<xsl:apply-templates select="." mode="object.title.markup"/>
</th>
</tr>
<tr>
- <td align="left" valign="top">
+ <td align="{$direction.align.start}" valign="top">
<xsl:apply-templates/>
</td>
</tr>
<xsl:call-template name="subtoc">
<xsl:with-param name="toc-context" select="$toc-context"/>
- <xsl:with-param name="nodes" select="section
+ <xsl:with-param name="nodes" select="section|refentry|simplesect
|bridgehead[$bridgehead.in.toc != 0]"/>
</xsl:call-template>
</xsl:template>
</tr>
<tr>
<td width="10%" valign="top"> </td>
- <td colspan="2" align="right" valign="top">
+ <td colspan="2" align="{$direction.align.end}" valign="top">
<xsl:text>--</xsl:text>
<xsl:apply-templates select="attribution"/>
</td>
<xsl:apply-templates select="." mode="class.attribute"/>
<table border="0" width="100%" summary="Revision history">
<tr>
- <th align="left" valign="top" colspan="3">
+ <th align="{$direction.align.start}" valign="top" colspan="3">
<b>
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'RevHistory'"/>
<xsl:variable name="revauthor" select="authorinitials|author"/>
<xsl:variable name="revremark" select="revremark|revdescription"/>
<tr>
- <td align="left">
+ <td align="{$direction.align.start}">
<xsl:if test="$revnumber">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'Revision'"/>
<xsl:apply-templates select="$revnumber"/>
</xsl:if>
</td>
- <td align="left">
+ <td align="{$direction.align.start}">
<xsl:apply-templates select="$revdate"/>
</td>
<xsl:choose>
<xsl:when test="count($revauthor)=0">
- <td align="left">
+ <td align="{$direction.align.start}">
<xsl:call-template name="dingbat">
<xsl:with-param name="dingbat">nbsp</xsl:with-param>
</xsl:call-template>
</td>
</xsl:when>
<xsl:otherwise>
- <td align="left">
+ <td align="{$direction.align.start}">
<xsl:for-each select="$revauthor">
<xsl:apply-templates select="."/>
<xsl:if test="position() != last()">
</tr>
<xsl:if test="$revremark">
<tr>
- <td align="left" colspan="3">
+ <td align="{$direction.align.start}" colspan="3">
<xsl:apply-templates select="$revremark"/>
</td>
</tr>
<xsl:if test="$fcount > 0">
<div class="footnotes">
<br/>
- <hr width="100" align="left"/>
+ <hr width="100" align="{$direction.align.start}"/>
<xsl:call-template name="process.footnotes.in.this.chunk">
<xsl:with-param name="node" select="."/>
<xsl:with-param name="footnotes" select="$footnotes"/>
<xsl:if test="$row2">
<tr>
- <td width="20%" align="left">
+ <td width="20%" align="{$direction.align.start}">
<xsl:if test="count($prev)>0">
<a accesskey="p">
<xsl:attribute name="href">
<xsl:otherwise> </xsl:otherwise>
</xsl:choose>
</th>
- <td width="20%" align="right">
+ <td width="20%" align="{$direction.align.end}">
<xsl:text> </xsl:text>
<xsl:if test="count($next)>0">
<a accesskey="n">
<table width="100%" summary="Navigation footer">
<xsl:if test="$row1">
<tr>
- <td width="40%" align="left">
+ <td width="40%" align="{$direction.align.start}">
<xsl:if test="count($prev)>0">
<a accesskey="p">
<xsl:attribute name="href">
<xsl:otherwise> </xsl:otherwise>
</xsl:choose>
</td>
- <td width="40%" align="right">
+ <td width="40%" align="{$direction.align.end}">
<xsl:text> </xsl:text>
<xsl:if test="count($next)>0">
<a accesskey="n">
<xsl:if test="$row2">
<tr>
- <td width="40%" align="left" valign="top">
+ <td width="40%" align="{$direction.align.start}" valign="top">
<xsl:if test="$navig.showtitles != 0">
<xsl:apply-templates select="$prev" mode="object.title.markup"/>
</xsl:if>
</a>
</xsl:if>
</td>
- <td width="40%" align="right" valign="top">
+ <td width="40%" align="{$direction.align.end}" valign="top">
<xsl:text> </xsl:text>
<xsl:if test="$navig.showtitles != 0">
<xsl:apply-templates select="$next" mode="object.title.markup"/>
<xsl:if test="title">
<tr>
- <th align="left" valign="top">
+ <th align="{$direction.align.start}" valign="top">
<xsl:apply-templates select="." mode="class.attribute"/>
<xsl:apply-templates select="title"/>
</th>
<xsl:template match="production">
<xsl:param name="recap" select="false()"/>
<tr>
- <td align="left" valign="top" width="3%">
+ <td align="{$direction.align.start}" valign="top" width="3%">
<xsl:text>[</xsl:text>
<xsl:number count="production" level="any"/>
<xsl:text>]</xsl:text>
</td>
- <td align="right" valign="top" width="10%">
+ <td align="{$direction.align.end}" valign="top" width="10%">
<xsl:choose>
<xsl:when test="$recap">
<a>
<xsl:apply-templates select="rhs"/>
<xsl:copy-of select="$ebnf.statement.terminator"/>
</td>
- <td align="left" valign="top" width="30%">
+ <td align="{$direction.align.start}" valign="top" width="30%">
<xsl:choose>
<xsl:when test="rhs/lineannotation|constraint">
<xsl:apply-templates select="rhs/lineannotation" mode="rhslo"/>
<xsl:if test="count($footnotes)>count($table.footnotes)">
<div class="footnotes">
<br/>
- <hr width="100" align="left"/>
+ <hr width="100" align="{$direction.align.start}"/>
<xsl:apply-templates select="$footnotes" mode="process.footnote.mode"/>
</div>
</xsl:if>
</xsl:call-template>
</xsl:variable>
- <div class="longdesc-link" align="right">
+ <div class="longdesc-link" align="{$direction.align.end}">
<br clear="all"/>
<span class="longdesc-link">
<xsl:text>[</xsl:text>
<xsl:choose>
<xsl:when test="@inheritnum='inherit' and ancestor::listitem[parent::orderedlist]">
<table border="0">
- <col align="left" valign="top"/>
+ <col align="{$direction.align.start}" valign="top"/>
<tbody>
<xsl:apply-templates
mode="orderedlist-table"
<xsl:value-of select="$table-summary"/>
</xsl:attribute>
</xsl:if>
- <col align="left" valign="top">
+ <col align="{$direction.align.start}" valign="top">
<xsl:if test="$term-width != ''">
<xsl:attribute name="width">
<xsl:value-of select="$term-width"/>
</xsl:with-param>
</xsl:call-template>
- <td width="5%" valign="top" align="left">
+ <td width="5%" valign="top" align="{$direction.align.start}">
<p>
<xsl:call-template name="anchor"/>
<xsl:call-template name="callout.arearefs">
</xsl:call-template>
</p>
</td>
- <td valign="top" align="left">
+ <td valign="top" align="{$direction.align.start}">
<xsl:apply-templates/>
</td>
</tr>
<xsl:if test="blockinfo/title|info/title|title">
<tr class="qandadiv">
- <td align="left" valign="top" colspan="2">
+ <td align="{$direction.align.start}" valign="top" colspan="2">
<xsl:apply-templates select="(blockinfo/title|info/title|title)[1]"/>
</td>
</tr>
<xsl:if test="(contains($toc.params, 'toc') and $toc != '0') or $toc = '1'">
<tr class="toc">
- <td align="left" valign="top" colspan="2">
+ <td align="{$direction.align.start}" valign="top" colspan="2">
<xsl:call-template name="process.qanda.toc"/>
</td>
</tr>
</xsl:if>
<xsl:if test="$preamble">
<tr class="toc">
- <td align="left" valign="top" colspan="2">
+ <td align="{$direction.align.start}" valign="top" colspan="2">
<xsl:apply-templates select="$preamble"/>
</td>
</tr>
<tr>
<xsl:apply-templates select="." mode="class.attribute"/>
- <td align="left" valign="top">
+ <td align="{$direction.align.start}" valign="top">
<xsl:call-template name="anchor">
<xsl:with-param name="node" select=".."/>
<xsl:with-param name="conditional" select="0"/>
</b></p>
</xsl:if>
</td>
- <td align="left" valign="top">
+ <td align="{$direction.align.start}" valign="top">
<xsl:choose>
<xsl:when test="$deflabel = 'none' and not(label)">
<b><xsl:apply-templates select="*[local-name(.) != 'label']"/></b>
</xsl:variable>
<tr class="{local-name(.)}">
- <td align="left" valign="top">
+ <td align="{$direction.align.start}" valign="top">
<xsl:call-template name="anchor"/>
<xsl:variable name="answer.label">
<xsl:apply-templates select="." mode="label.markup"/>
</b></p>
</xsl:if>
</td>
- <td align="left" valign="top">
+ <td align="{$direction.align.start}" valign="top">
<xsl:apply-templates select="*[local-name(.) != 'label'
and local-name(.) != 'qandaentry']"/>
<!-- * handle nested answer/qandaentry instances -->
</xsl:attribute>
</xsl:if>
- <col align="left">
+ <col align="{$direction.align.start}">
<xsl:attribute name="width">
<xsl:choose>
<xsl:when test="$label-width != ''">
<xsl:apply-templates select="." mode="class.attribute"/>
<table border="1" width="100%" summary="Revision history">
<tr>
- <th align="left" valign="top" colspan="{$numcols}">
+ <th align="{$direction.align.start}" valign="top" colspan="{$numcols}">
<b>
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'RevHistory'"/>
<xsl:variable name="revauthor" select="authorinitials|author"/>
<xsl:variable name="revremark" select="revremark|revdescription"/>
<tr>
- <td align="left">
+ <td align="{$direction.align.start}">
<xsl:if test="$revnumber">
<xsl:call-template name="gentext">
<xsl:with-param name="key" select="'Revision'"/>
<xsl:apply-templates select="$revnumber[1]" mode="titlepage.mode"/>
</xsl:if>
</td>
- <td align="left">
+ <td align="{$direction.align.start}">
<xsl:apply-templates select="$revdate[1]" mode="titlepage.mode"/>
</td>
<xsl:choose>
<xsl:when test="$revauthor">
- <td align="left">
+ <td align="{$direction.align.start}">
<xsl:for-each select="$revauthor">
<xsl:apply-templates select="." mode="titlepage.mode"/>
<xsl:if test="position() != last()">
</tr>
<xsl:if test="$revremark">
<tr>
- <td align="left" colspan="{$numcols}">
+ <td align="{$direction.align.start}" colspan="{$numcols}">
<xsl:apply-templates select="$revremark[1]" mode="titlepage.mode"/>
</td>
</tr>