summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun McCance <shaunm@gnome.org>2008-12-10 14:11:41 -0600
committerShaun McCance <shaunm@gnome.org>2009-04-19 11:13:31 -0500
commit79acdec047d7569f98214433f901a4c530af76b8 (patch)
tree5bca7c8a464f7d713a4642776f50eea78b4af7b3
parent8b6bdf2ff2eafec2fb5eaee50b32044b1fd41562 (diff)
downloadgnome-doc-utils-79acdec047d7569f98214433f901a4c530af76b8.tar.gz
Adding rowspan and colspan
-rw-r--r--xslt/mallard/html/mal2html-table.xsl15
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>