This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Table formatting challenge
/ David Carlisle <davidc@nag.co.uk> was heard to say:
| Actually Norm contacted me off the list over the weekend, I'm not
| totally familiar with the American idiom, but I think it translated as
| a comment that my code, whilst technically correct, was not as general
| as perhaps required.
Yeah, that's one translation :-)
| So here's a second version that isn't as elegant as the first but is
| more general (although as written it only copes with row spans in single
| figures)
By "single figures", do you mean row spans less than 10 or something
else?
Anyway, this code doesn't quite seem to work. In particular, for
<informaltable>
<tgroup cols="4">
<colspec colname="c4b" colnum="4"/>
<tbody>
<row>
<entry>A</entry>
<entry>B</entry>
<entry morerows="2">C</entry>
<entry morerows="2">D</entry>
</row>
<row>
<entry morerows="2">E</entry>
<entry>F</entry>
</row>
<row>
<entry>G</entry>
</row>
<row>
<entry>H</entry>
<entry namest="c4b">I</entry>
</row>
</tbody>
</tgroup>
</informaltable>
It produces too-many extra cells:
<table border="1">
<tr>
<td>A</td>
<td>B</td>
<td rowspan="3">C</td>
<td rowspan="3">D</td>
</tr>
<tr>
<td rowspan="3">E</td>
<td>F</td>
<td class="auto-generated">extra</td>
<td class="auto-generated">extra</td>
</tr>
<tr>
<td>G</td>
<td class="auto-generated">extra</td>
<td class="auto-generated">extra</td>
</tr>
<tr>
<td>H</td>
<td class="auto-generated">.</td>
<td>I</td>
</tr>
</table>
Be seeing you,
norm
--
Norman.Walsh@Sun.COM | Waste no more time arguing what a good man
XML Standards Engineer | should be. Be one.--Marcus Aurelius
Technology Dev. Group |
Sun Microsystems, Inc. |
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list