This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: xsl:number counting "cousins"
- From: Gustaf Liljegren <gustafl at algonet dot se>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Mon, 07 Oct 2002 10:14:15 +0200
- Subject: RE: [xsl] xsl:number counting "cousins"
- References: <3.0.6.32.20021006222903.007981d0@pop.algonet.se>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Michael Kay:
>Doesn't
>
><xsl:number level="any" from="table"/>
>
>give you what you want?
Thanks a lot. That solved it. The <fo:table-column> elements are now
numbered correctly.
I have another related problem: These numbers is used in the same
attributes in the <fo:table-cell> elements. I don't know how to achieve the
right numbering when cells are spanned horisontally or vertically. In this
example,
+---+---+---+
| | | |
+---+---+---+
| | X |
+-------+---+
<tr>
<td/>
<td/>
<td/>
</tr>
<tr>
<td colspan="2"/>
<td>X</td>
</tr>
X has the column number 3, not 2. And in this example,
+---+---+---+
| | | |
| +---+---+
| | X | |
+---+---+---+
<tr>
<td rowspan="2"/>
<td/>
<td/>
</tr>
<tr>
<td>X</td>
<td/>
</tr>
X has column number 2, not 1.
I think I need some advice on how to find out the right column number for
each cell.
Gustaf
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list