This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: XHTML to CALS table


In message <8825699D.006C9DA5.00@notes.electric.net>, Ben Skelton
<Ben_Skelton@habaneros.com> 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
richard@light.demon.co.uk


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]