From: Bob Stayton Date: Wed, 1 Apr 2009 08:47:55 +0000 (+0000) Subject: Add support for some format properties on tables using X-Git-Tag: release/1.79.1~6^2~1046 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b0f64f728dcd1faa1c65601ff808e7513a044094;p=docbook-dsssl Add support for some format properties on tables using HTML table markup. These include: - frame attribute on table (or uses $default.table.frame parameter). - rules attribute on table (or uses $default.table.rules parameter). - align attribute on td and th - valign attribute on td and th - colspan on td and th - rowspan on td and th - bgcolor on td and th --- diff --git a/xsl/common/table.xsl b/xsl/common/table.xsl index 85bf43fa1..7ce298cdd 100644 --- a/xsl/common/table.xsl +++ b/xsl/common/table.xsl @@ -258,7 +258,7 @@ or 0 (the empty string) + |$entry/ancestor::entrytbl)[last()]"/> @@ -411,7 +411,7 @@ or 0 (the empty string) + [position() = last()]"/> diff --git a/xsl/fo/htmltbl.xsl b/xsl/fo/htmltbl.xsl index 14f0105ba..cfaa28fce 100644 --- a/xsl/fo/htmltbl.xsl +++ b/xsl/fo/htmltbl.xsl @@ -15,10 +15,6 @@ - - bold - - @@ -43,6 +39,7 @@ fixed + @@ -54,9 +51,36 @@ 100% + + + + + all + all + bottom + top + topbot + sides + lhs + rhs + none + all + none + + + + + + + all + + + + + @@ -73,6 +97,171 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + none + none + none + none + + + + + none + none + none + + + + + + + + + + + + + + + + 1 + + 1 + 1 + + 1 + 0 + + + + + none + none + none + + + + + + + + + + + + + none + none + + + + + 1 + + 1 + 1 + + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + none + none + none + + + + + + + + + + + + none + none + none + + + + + + + + + + + + + @@ -146,55 +335,12 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -202,10 +348,11 @@ - + + @@ -216,11 +363,29 @@ - + + + + + + + + + + + + + + + + + + + @@ -244,12 +409,8 @@ - + diff --git a/xsl/fo/param.ent b/xsl/fo/param.ent index 52879e605..a75d58280 100644 --- a/xsl/fo/param.ent +++ b/xsl/fo/param.ent @@ -48,6 +48,7 @@ + diff --git a/xsl/fo/param.xweb b/xsl/fo/param.xweb index 8e09e88ef..468b171ce 100644 --- a/xsl/fo/param.xweb +++ b/xsl/fo/param.xweb @@ -148,6 +148,7 @@ generate.section.toc.level; &default.table.width; &nominal.table.width; &default.table.frame; +&default.table.rules; &table.cell.padding; &table.frame.border.thickness; &table.frame.border.style; @@ -609,6 +610,7 @@ around all these parameters. + diff --git a/xsl/fo/table.xsl b/xsl/fo/table.xsl index b0b8758d8..cec81c10f 100644 --- a/xsl/fo/table.xsl +++ b/xsl/fo/table.xsl @@ -148,11 +148,11 @@ - - - - - + + + + + @@ -226,11 +226,11 @@ + the ancestor tgroup has a following sibling tgroup) --> + and not(ancestor::tgroup/following-sibling::tgroup)"> @@ -285,7 +285,7 @@ - + @@ -295,7 +295,8 @@ all - + + @@ -372,6 +373,34 @@ + + + + + none + none + none + + + + + + + + + + + + none + none + none + + + + + + + none none @@ -819,11 +848,11 @@ + the ancestor tgroup has a following sibling tgroup) --> + and not(ancestor::tgroup/following-sibling::tgroup)"> @@ -831,7 +860,7 @@ following-sibling::row) = @morerows ) and not (ancestor-or-self::thead/following-sibling::tbody or ancestor-or-self::tbody/preceding-sibling::tfoot) - and not(ancestor::tgroup/following-sibling::tgroup)"> + and not(ancestor::tgroup/following-sibling::tgroup)"> @@ -1151,18 +1180,33 @@ - - - - - - - - + + + + + + + + + before + center + after + + + Unexpected valign value: + + , center used. + + center + + + + + + +