From 285f0cb9bdc89f135a1c6ef839fadc1e573a7d7d Mon Sep 17 00:00:00 2001 From: Bob Stayton Date: Thu, 4 May 2006 07:11:00 +0000 Subject: [PATCH] Refactored table templates to unify their processing and support all options in all types. Now table and informaltable, in both Cals and Html markup, use the same templates where possible, and all support pgwide, rotation, and floats. There is also a placeholder table.container template to support wrapping a table in a layout table, so the XEP table title "continued" extension can be more easily implemented. --- xsl/fo/formal.xsl | 432 ++++++--------------------------------------- xsl/fo/htmltbl.xsl | 166 +++++++---------- xsl/fo/table.xsl | 316 ++++++++++++++++++++++++++++++++- 3 files changed, 434 insertions(+), 480 deletions(-) diff --git a/xsl/fo/formal.xsl b/xsl/fo/formal.xsl index 6a51fa2ba..493bdf6e2 100644 --- a/xsl/fo/formal.xsl +++ b/xsl/fo/formal.xsl @@ -372,301 +372,81 @@ - - - - - - - all - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - none - none - none - - - - - - - - - - - - - - - - - - none - none - - - - - - - - - - - - - - - none - none - - - - none - - - - - - - - - none - none - - - - - - - - - - - - - - - - - - - - - none - none - none - none - - - - Impossible frame on table: - - - none - none - none - none - - - - - - - - - - - - - - - - + + + - Broken table: tr descendent of CALS Table. + + Broken table: tr descendent of CALS Table. + The text in the first tr is: + + + + + + Broken table: row descendent of HTML table. + The text in the first row is: + + - - + + + - - - - - - - - before - - - - + + + + + - - - - + + + + - - - - - - - - - - - - - - - - - - - - - 0pt - none - 0pt - 0pt - 0pt - 0pt - 0pt - 0pt - - - 0pt - none - 0pt - 0pt - 0pt - 0pt - 0pt - 0pt - - - fixed - - - - - - - - - - - + + + + + - - - - - - + + + - - - - - - - - - - all - none - - - - - - + + + + + - - - - all - none - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 0pt - none - 0pt - 0pt - 0pt - 0pt - 0pt - 0pt - - - 0pt - none - 0pt - 0pt - 0pt - 0pt - 0pt - 0pt - - - fixed - - - - - - - - - - - - - - - - - - - - - - all - none - - - - - - - - - - - - all - none - - - - - - - - - @@ -873,4 +546,5 @@ + diff --git a/xsl/fo/htmltbl.xsl b/xsl/fo/htmltbl.xsl index 243bc6ee3..916a490b4 100644 --- a/xsl/fo/htmltbl.xsl +++ b/xsl/fo/htmltbl.xsl @@ -19,16 +19,8 @@ bold + - - Broken table: row descendent of HTML table. - - - - - @@ -36,98 +28,53 @@ - - - - - - + + + + - - - - - - - - fixed - - - - - - - - 100% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 100% - - - - - - - - - - - - - - - - - - - - - - + + + + fixed + + + + + + + + + + + 100% + + + + + + + + + + + + + + + + + + + - - - - - - - + @@ -165,11 +112,21 @@ - + - + + + + + + + + @@ -191,7 +148,9 @@ + border-bottom-color="black" + start-indent="0pt" + end-indent="0pt"> @@ -206,6 +165,8 @@ + + @@ -215,7 +176,8 @@ - + @@ -231,6 +193,8 @@ + + @@ -243,6 +207,8 @@ diff --git a/xsl/fo/table.xsl b/xsl/fo/table.xsl index 7dbc2a172..5fa25312c 100644 --- a/xsl/fo/table.xsl +++ b/xsl/fo/table.xsl @@ -2,6 +2,7 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0pt + none + 0pt + 0pt + 0pt + 0pt + 0pt + 0pt + + + 0pt + none + 0pt + 0pt + 0pt + 0pt + 0pt + 0pt + + + fixed + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + before + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -120,6 +293,147 @@ to be incomplete. Don't forget to read the source, too :-) + + + + + + + + all + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + none + none + none + + + + + + + + + + + + + + + + + + none + none + + + + + + + + + + + + + + + none + none + + + + none + + + + + + + + + none + none + + + + + + + + + + + + + + + + + + + + + none + none + none + none + + + + Impossible frame on table: + + + none + none + none + none + + + + @@ -297,7 +611,7 @@ to be incomplete. Don't forget to read the source, too :-) 100% -- 2.40.0