]> granicus.if.org Git - docbook-dsssl/commitdiff
Change align="left" to use $direction.align.start instead,
authorBob Stayton <bobs@sagehill.net>
Mon, 15 Dec 2008 22:26:38 +0000 (22:26 +0000)
committerBob Stayton <bobs@sagehill.net>
Mon, 15 Dec 2008 22:26:38 +0000 (22:26 +0000)
and change align="right" to use $direction.align.end instead.

xsl/html/admon.xsl
xsl/html/autotoc.xsl
xsl/html/block.xsl
xsl/html/chunk-common.xsl
xsl/html/ebnf.xsl
xsl/html/footnote.xsl
xsl/html/graphics.xsl
xsl/html/lists.xsl
xsl/html/qandaset.xsl
xsl/html/titlepage.xsl

index e79dfc56f23774fc42550b33781c35870b2582d4..311183d7265f2bf4c5dfb94ccab5eda785b28858 100644 (file)
@@ -87,7 +87,7 @@
             </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"/>
@@ -95,7 +95,7 @@
         </th>
       </tr>
       <tr>
-        <td align="left" valign="top">
+        <td align="{$direction.align.start}" valign="top">
           <xsl:apply-templates/>
         </td>
       </tr>
index fabb2ecc7872583fa98fdf55cd38d82ebca946e4..9fda5080024438b439929413e9fc0a878ae02536 100644 (file)
 
   <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>
index 83e2d41abd2e43633ad9808328a1931291fb4060..e00c2570d87ac2ee4f2e0e104ca3ba9a81923ff4 100644 (file)
           </tr>
           <tr>
             <td width="10%" valign="top">&#160;</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>
index 24167bf90c2c1dbba50ff376a08015cb135f7f2e..2da775500f2dbd7e9a5fef57c24bee18c2feee30 100644 (file)
   <xsl:if test="$fcount &gt; 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>&#160;</xsl:otherwise>
                 </xsl:choose>
               </th>
-              <td width="20%" align="right">
+              <td width="20%" align="{$direction.align.end}">
                 <xsl:text>&#160;</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>&#160;</xsl:otherwise>
                 </xsl:choose>
               </td>
-              <td width="40%" align="right">
+              <td width="40%" align="{$direction.align.end}">
                 <xsl:text>&#160;</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>&#160;</xsl:text>
                 <xsl:if test="$navig.showtitles != 0">
                   <xsl:apply-templates select="$next" mode="object.title.markup"/>
index 70f01cf6440cc37d17b71581a049a1af72bd84d9..e70e44c403d079a206241d12bccaf5ae1fd4857e 100644 (file)
@@ -73,7 +73,7 @@ to be incomplete. Don't forget to read the source, too :-)</para>
 
     <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>
@@ -105,12 +105,12 @@ to be incomplete. Don't forget to read the source, too :-)</para>
 <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>
@@ -135,7 +135,7 @@ to be incomplete. Don't forget to read the source, too :-)</para>
       <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"/>
index 0c03df5e1d8ce61114107239f8cabecf418eb207..2e7a0ad3d710a37bf8ea8d765edc555279dab794 100644 (file)
@@ -242,7 +242,7 @@ linkend/id: <xsl:value-of select="@linkend"/>
   <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>
index c7a41457b7620bfa872c7b0eba5c1b7862fa43dc..720528ed0e4056a3d1b01b3c84fa06719b192f6e 100644 (file)
@@ -1352,7 +1352,7 @@ valign: <xsl:value-of select="@valign"/></xsl:message>
     </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>
index 908bccee15b05a1bb561fa7e57d7b974b4ecc2f3..1cc78b4721080edc6af3a2afcc21586e0f60db2c 100644 (file)
     <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>
index 67a37625624d4e53788c92dee725ecf982317c5b..5037897edaac18b76a5d898aca35d7e1c3211239 100644 (file)
@@ -75,7 +75,7 @@
 
   <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 != ''">
index 9be4b13421cee9e52d0e8313e42a6f29101dc63e..8c344fa2b6550ed2413c50372ac66126b6a00c20 100644 (file)
       <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>