[gnome-doc-utils/mallard: 66/87] Adding rowspan and colspan



commit 79acdec047d7569f98214433f901a4c530af76b8
Author: Shaun McCance <shaunm gnome org>
Date:   Wed Dec 10 14:11:41 2008 -0600

    Adding rowspan and colspan
---
 xslt/mallard/html/mal2html-table.xsl |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/xslt/mallard/html/mal2html-table.xsl b/xslt/mallard/html/mal2html-table.xsl
index 497c3a1..da86a28 100644
--- a/xslt/mallard/html/mal2html-table.xsl
+++ b/xslt/mallard/html/mal2html-table.xsl
@@ -43,10 +43,11 @@ table.table {
   border-color: #555753;
   border-width: 1px;
 }
-td {
-  padding: 0.5em;
+table.table td {
+  padding: 0.1em 0.5em 0.1em 0.5em;
   border-color: #888a85;
   border-width: 1px;
+  vertical-align: top;
 }
 </xsl:text>
 </xsl:template>
@@ -406,6 +407,16 @@ td {
         <xsl:value-of select="$style"/>
       </xsl:attribute>
     </xsl:if>
+    <xsl:if test="@colspan">
+      <xsl:attribute name="colspan">
+        <xsl:value-of select="@colspan"/>
+      </xsl:attribute>
+    </xsl:if>
+    <xsl:if test="@rowspan">
+      <xsl:attribute name="rowspan">
+        <xsl:value-of select="@rowspan"/>
+      </xsl:attribute>
+    </xsl:if>
     <xsl:apply-templates mode="mal2html.block.mode"/>
   </td>
 </xsl:template>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]