From 53105a4b3b65ffb78e2c0496874ca6eadfd6d0b3 Mon Sep 17 00:00:00 2001 From: Norman Walsh Date: Sun, 14 Oct 2001 20:27:25 +0000 Subject: [PATCH] Fixed a number of significant outstanding table problems; I think HTML and FO now format all combinations of spans and missing cells correctly. But the border drawing isn't perfect on FO tables yet. --- xsl/common/table.xsl | 158 +++++++++++++++++ xsl/fo/table.xsl | 398 ++++++++++++++++++++++++++++-------------- xsl/html/table.xsl | 406 +++++++++++++++++++++---------------------- 3 files changed, 630 insertions(+), 332 deletions(-) create mode 100644 xsl/common/table.xsl diff --git a/xsl/common/table.xsl b/xsl/common/table.xsl new file mode 100644 index 000000000..0644dec2a --- /dev/null +++ b/xsl/common/table.xsl @@ -0,0 +1,158 @@ + + + + + + + 0: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0: + + + : + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + +Determine the column number in which a given entry occurs + +If an entry has a +colname or +namest attribute, this template +will determine the number of the column in which the entry should occur. +For other entrys, nothing is returned. + + + +entry + +The entry-element which is to be tested. + + + + + + +This template returns the column number if it can be determined, +or 0 (the empty string) + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + diff --git a/xsl/fo/table.xsl b/xsl/fo/table.xsl index d88a1f1fa..393f20acd 100644 --- a/xsl/fo/table.xsl +++ b/xsl/fo/table.xsl @@ -8,6 +8,8 @@ exclude-result-prefixes="doc stbl xtbl lxslt" version='1.0'> + + + + + + + + + + @@ -180,7 +190,15 @@ to be incomplete. Don't forget to read the source, too :-) - + + + + + + + + + @@ -204,7 +222,15 @@ to be incomplete. Don't forget to read the source, too :-) - + + + + + + + + + @@ -264,98 +290,277 @@ to be incomplete. Don't forget to read the source, too :-) - + + + + + + + + + + + + + - + + + + - - - - + + + + + + - - + + + + - - - + + + - - - + + + + - + - - - - - - - - - - - - - - - - - + + - - - - - - + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + - - - - - - - - - - - - - - + + + + before + center + after + + + + + + + + + + + + + + + +   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + 1 + + - - - - + + + + + + + + + + + : + + + + + + + + 0: + + + + + + + + + + + + + + + 0 + + : + + + + + + + + + + + + + + + + + + @@ -671,69 +876,6 @@ proportional-column-width() function. - - - - - - 1 - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xsl/html/table.xsl b/xsl/html/table.xsl index 63b1ac34e..a3d9f9be8 100644 --- a/xsl/html/table.xsl +++ b/xsl/html/table.xsl @@ -7,6 +7,8 @@ exclude-result-prefixes="doc stbl xtbl lxslt" version='1.0'> + + - 0 @@ -213,7 +210,14 @@ - + + + + + + + + @@ -240,11 +244,20 @@ - + + + + + + + + + + @@ -267,214 +280,219 @@ - + + + - - - - th - - + + + + + + - - - td - + + + + - - - th - - + + + + + + + th + th + td + + - - td - - - - - - - - - - 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - -   + + - - - + 1 - - + - - + + + + + + - - - - - + + + + - - - - - + + + + + + - 1 + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   + + + + + + + + + + + + + + + + + + + + - -Determine the column number in which a given entry occurs - -If an entry has a -colname or -namest attribute, this template -will determine the number of the column in which the entry should occur. -For other entrys, nothing is returned. - - - -entry - -The entry-element which is to be tested. - - - - - - -This template returns the column number if it can be determined, -or nothing (the empty string) - - - - - + + + + + + + + + + + + + + 1 + + + + + + + + + - - - - - + + + : + + + - - - - - + + + 0: + + + - 1 - - - - - - - - - - + + + + + + + + + 0 + + : + + - - - - - - - - - - - - - - - 1 + + + + + + + + + + + + + + @@ -604,25 +622,5 @@ or nothing (the empty string) - - - - - - - - - - - - - - - - - - -- 2.50.1