Re: [xsl] converting cals table to html using xslt

Subject: Re: [xsl] converting cals table to html using xslt
From: "andrew welch" <andrew.j.welch@xxxxxxxxx>
Date: Thu, 4 May 2006 16:15:57 +0100
On 5/4/06, Tech Savvy <tecsavvy@xxxxxxxxx> wrote:

I did look at the archive and at all the examples. I am actually
having a hard time  implementing the cals table solution.

Here is what I need to do:
1) I have a table which is in cals table format:

<tgroup cols="5">
<colspec colname="c1" colwidth="1.35in">
<colspec colname="c2" colwidth="1in">
<colspec colname="c3" colwidth="0.75in">
<colspec colname="c4" colwidth="1in">
<colspec colname="c5" colwidth="0.9in">
          <entry nameend="4" namest="c3">
                              <para> Text1 </para>

I need a style sheet (xslt and xslfo) in which
1)the <td> width is set to the colwidth of cals table and
2) I need to know how to handle nameest and nameend on the style
sheet. My understanding is that this defines the col span. Is that a
correct understanding? If so, the "text1" should span two columns.

Implementing a cals table stylesheet is no mean feat, and you seem to be at the very early stages. I would get your problem defined first - do you need to implement the whole of cals or a subset? Are you outputting to both XHTML and XSL:FO? It could be sufficient to use the Oasis table stylesheets in docbook.

It's a massive task as the cals standard is so loose - its certainly
not something to undertake lightly.  For example, in some
circumstances to correctly work out the row and col spans you need to
normlize the table first - possible but pretty much a nightmare.  I
don't think there's a stylesheet out there that fully implements the

Current Thread