From 64dabcc8fa4ffcadf70819570d66356d9e958bef Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Tue, 8 Nov 2005 06:01:01 +0000 Subject: [PATCH] Checkpointing. This currently does not work as-is. I added support for processing Rowspan correctly and it seems to work as expected, but still need to do add some handling to actually generate the tbl(1) format spec. This implementation relies on holding a big node-set in memory, containing "Cell" elements store information about the nature of each cell (e.g., whether it is a "normal" cell, or the result of a Rowspan or Colspan). I could not figure out a way to implement support for Rowspan without ending up storing multiple, duplicate, Cell elements for each cell. (It gets uniq-ified later using the EXSLT set:distinct function.) The duplication will probably cause performance and memory issues with big tables. Maybe I will figure out later how to do it properly; but for now, this will have to do. --- xsl/manpages/table.xsl | 400 ++++++++++++++++++++++++++++++++++++----- 1 file changed, 353 insertions(+), 47 deletions(-) diff --git a/xsl/manpages/table.xsl b/xsl/manpages/table.xsl index d0ea99360..8b76218d0 100644 --- a/xsl/manpages/table.xsl +++ b/xsl/manpages/table.xsl @@ -1,17 +1,29 @@ - + ******************************************************************** --> + + + + + + + + + + + @@ -37,7 +49,9 @@ allbox; - + + + @@ -74,58 +88,350 @@ .sp - - - + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + Cell: Row="", Column="" - value: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + - + + + + + + + + + Otherwise, the value os $iterations is still non-zero, so + we call the rowspan template to generate the bogus Cell + instances we need for outputting appropriate tbl(1) + markup we need for Rowspan instances. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - cfB + + h l - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + s + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - - . - - - - + + + + + + + + + + + + + + + ^ + + + + + + + + + + + + + + + + + + + + + + + + + + + , + + , + + -- 2.40.0