瀏覽代碼

Center only table title.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/new-xsl@8142 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Manuel Canales Esparcia 18 年之前
父節點
當前提交
95d4b8058e
共有 1 個文件被更改,包括 7 次插入2 次删除
  1. 7 2
      pdf/lfs-mixed.xsl

+ 7 - 2
pdf/lfs-mixed.xsl

@@ -200,9 +200,14 @@
     </xsl:attribute>
   </xsl:attribute-set>
 
-   <!-- Center formal objects title, like in table. -->
+   <!-- Center table title. -->
   <xsl:attribute-set name="formal.title.properties">
-    <xsl:attribute name="text-align">center</xsl:attribute>
+    <xsl:attribute name="text-align">
+      <xsl:choose>
+        <xsl:when test="local-name(.) = 'table'">center</xsl:when>
+        <xsl:otherwise>left</xsl:otherwise>
+      </xsl:choose>
+    </xsl:attribute>
   </xsl:attribute-set>
 
     <!-- table.layout: