Dear ROCXY/ Martin,
I'm an XSLT newbie an have an urgent need to transform CALS tables to XHTML, So I used the XSLT discussed above. However, I don't know what is it that I'm doing wrong cuz when I transfer a table like:
Code:
<article xmlns='http://docbook.org/ns/docbook'>
<tgroup cols='5' align='left' colsep='1' rowsep='1'>
<colspec colname='c1'/>
<colspec colname='c2'/>
<colspec colname='c3'/>
<colspec colnum='5' colname='c5'/>
<thead>
<row>
<entry namest="c1" nameend="c2" align="center">Horizontal Span</entry>
<entry>a3</entry>
<entry>a4</entry>
<entry>a5</entry>
</row>
</thead>
<tfoot>
<row>
<entry>f1</entry>
<entry>f2</entry>
<entry>f3</entry>
<entry>f4</entry>
<entry>f5</entry>
</row>
</tfoot>
<tbody>
<row>
<entry>b1</entry>
<entry>b2</entry>
<entry>b3</entry>
<entry>b4</entry>
<entry morerows='1' valign='middle'><para>Vertical Span</para></entry>
</row>
<row>
<entry>c1</entry>
<entry namest="c2" nameend="c3" align='center' morerows='1' valign='bottom'>Span Both</entry>
<entry>c4</entry>
</row>
<row>
<entry>d1</entry>
<entry>d4</entry>
<entry>d5</entry>
</row>
</tbody>
</tgroup>
</article>
I get this:
Code:
Sample CALS Table
Horizontal Span
a3
a4
a5
f1
f2
f3
f4
f5
b1
b2
b3
b4
Vertical Span
c1
Span Both
c4
d1
d4
d5
where I was expecting to get the equivalent XHTML table. I'd appreciate if you could help me out and I apologize in advance if I'm doing something really stupid
Roozy