From f9b0fc96e9b6904670bd32468e3744756aef01c6 Mon Sep 17 00:00:00 2001 From: Norman Walsh Date: Mon, 15 Oct 2001 12:42:44 +0000 Subject: [PATCH] Fix calculation of rowsep and colsep; added experimental support for table.borders.with.css in HTML; calculation of alignments needs to be added along the same lines --- xsl/common/table.xsl | 255 +++++++++++++++++++++++++- xsl/fo/param.ent | 1 + xsl/fo/param.xweb | 2 + xsl/fo/table.xsl | 119 +++++++++--- xsl/html/param.ent | 5 + xsl/html/param.xweb | 8 + xsl/html/table.xsl | 132 ++++++++++++- xsl/params/table.borders.with.css.xml | 23 +++ xsl/params/table.entry.padding.xml | 22 +++ 9 files changed, 535 insertions(+), 32 deletions(-) create mode 100644 xsl/params/table.borders.with.css.xml create mode 100644 xsl/params/table.entry.padding.xml diff --git a/xsl/common/table.xsl b/xsl/common/table.xsl index 0644dec2a..895e92da3 100644 --- a/xsl/common/table.xsl +++ b/xsl/common/table.xsl @@ -33,17 +33,21 @@ + - + + + + @@ -70,6 +74,16 @@ + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + @@ -155,4 +192,216 @@ or 0 (the empty string) + + + + + + 1 + + + + + + + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + 0 + + + + + + + + + + + + + + 0 + + + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + 0 + + + + + + + + + + + + + + 0 + + + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xsl/fo/param.ent b/xsl/fo/param.ent index 9c00b11d1..88c8d8c5c 100644 --- a/xsl/fo/param.ent +++ b/xsl/fo/param.ent @@ -110,3 +110,4 @@ + diff --git a/xsl/fo/param.xweb b/xsl/fo/param.xweb index 992bfe890..45cf53776 100644 --- a/xsl/fo/param.xweb +++ b/xsl/fo/param.xweb @@ -168,6 +168,7 @@ to be incomplete. Don't forget to read the source, too :-) &verbatim.properties; &xep.extensions; &xref.properties; +&table.entry.padding; &table.border.thickness; &table.border.padding; &table.border.style; @@ -305,6 +306,7 @@ around all these parameters. + diff --git a/xsl/fo/table.xsl b/xsl/fo/table.xsl index 393f20acd..a68481297 100644 --- a/xsl/fo/table.xsl +++ b/xsl/fo/table.xsl @@ -59,8 +59,48 @@ to be incomplete. Don't forget to read the source, too :-) - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -70,13 +110,14 @@ to be incomplete. Don't forget to read the source, too :-) - + - + + - + + - @@ -88,8 +129,6 @@ to be incomplete. Don't forget to read the source, too :-) - - - + - - - - - - - + - Don't know how to do adjust column widths with - + No adjustColumnWidths function available. @@ -342,13 +374,24 @@ to be incomplete. Don't forget to read the source, too :-) - + + + + + + + + + + + + - + 1 @@ -362,6 +405,20 @@ to be incomplete. Don't forget to read the source, too :-) + + + + + + + + + + + + + + @@ -371,7 +428,9 @@ to be incomplete. Don't forget to read the source, too :-) - + + + @@ -379,7 +438,7 @@ to be incomplete. Don't forget to read the source, too :-) - + @@ -402,13 +461,15 @@ to be incomplete. Don't forget to read the source, too :-) - + - + + @@ -461,6 +522,13 @@ to be incomplete. Don't forget to read the source, too :-) --> +   @@ -482,6 +550,7 @@ to be incomplete. Don't forget to read the source, too :-) + @@ -499,7 +568,7 @@ to be incomplete. Don't forget to read the source, too :-) - + 1 diff --git a/xsl/html/param.ent b/xsl/html/param.ent index 5222c77f8..3db540069 100644 --- a/xsl/html/param.ent +++ b/xsl/html/param.ent @@ -112,3 +112,8 @@ + + + + + diff --git a/xsl/html/param.xweb b/xsl/html/param.xweb index 5c58740aa..196095b9c 100644 --- a/xsl/html/param.xweb +++ b/xsl/html/param.xweb @@ -180,6 +180,10 @@ to be incomplete. Don't forget to read the source, too :-) Tables &default.table.width; &nominal.table.width; +&table.borders.with.css; +&table.border.style; +&table.border.thickness; +&table.border.color; QAndASet @@ -358,6 +362,10 @@ around all these parameters. + + + + diff --git a/xsl/html/table.xsl b/xsl/html/table.xsl index a3d9f9be8..2931a217b 100644 --- a/xsl/html/table.xsl +++ b/xsl/html/table.xsl @@ -23,9 +23,60 @@ functions="adjustColumnWidths"/> -   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   + + + + + + + + + + border- + + : + + + + + + ; + + @@ -63,6 +114,28 @@ 0 + + 0 + + + + + + + + + + + + + + + + + + + + 1 @@ -259,6 +332,16 @@ + + + + + + + + + + @@ -312,13 +395,24 @@ - + + + + + + + + + + + + - + 1 @@ -332,6 +426,20 @@ + + + + + + + + + + + + + + @@ -350,6 +458,21 @@ + + + + + + + + + + + + + + + @@ -415,6 +538,7 @@ + @@ -432,7 +556,7 @@ - + 1 diff --git a/xsl/params/table.borders.with.css.xml b/xsl/params/table.borders.with.css.xml new file mode 100644 index 000000000..29d02fc00 --- /dev/null +++ b/xsl/params/table.borders.with.css.xml @@ -0,0 +1,23 @@ + + +table.borders.with.css +boolean + + +table.borders.with.css +Use CSS to specify table, row, and cell borders? + + + + + + + + +Description + +If true (non-zero), CSS will be used to draw table borders. + + + + diff --git a/xsl/params/table.entry.padding.xml b/xsl/params/table.entry.padding.xml new file mode 100644 index 000000000..a065d6a2c --- /dev/null +++ b/xsl/params/table.entry.padding.xml @@ -0,0 +1,22 @@ + + +table.entry.padding + + + +table.entry.padding + + + + + + + + + +Description + +FIXME: + + + -- 2.40.0