Re: XHTML to CALS table

Subject: Re: XHTML to CALS table
From: Richard Light <richard@xxxxxxxxxxxxxxxxx>
Date: Mon, 20 Nov 2000 22:36:38 +0000
In message <8825699D.006C9DA5.00@xxxxxxxxxxxxxxxxxx>, Ben Skelton
<Ben_Skelton@xxxxxxxxxxxxx> writes

>I was wondering if anyone has a stylesheet or has had any experience converting
>HTML (or XHTML) tables to CALS tables using XSLT. The biggest problems I see in
>doing this is that colspan and rowspans are treated differently. Any help would
>be much appreciated!

I've been going the other way - XCALS (as it were) to HTML.  That poses
some interesting challenges, like filling in 'implied' cells, but
probably a whole different set from the challenges you face.

On balance you may have the easier task, since you can control the
generation of the 'colspec' cells that head up the table, and then
rewrite any column spanning instructions in terms of the colspec naming
conventions - over which you have total control. Row spanning should be
easy, since the logic of the two approaches is the same, it's just that
one is zero-based and the other is one-based.

Richard Light.

Richard Light
SGML/XML and Museum Information Consultancy

 XSL-List info and archive:

Current Thread