xsl-list
[Top] [All Lists]

Re: unknown number of columns...

2004-02-13 01:18:05
David Carlisle wrote:

.. so that the title is the "incremental number of columns". my problem is, that after beginning the new table (if n == position() )
 the title begins to count with 1 again. how can i prevent this?


you use the code I posted.

on the outer loop store the position() -1 in $x so this is the table
count, starting at 0.

in the inner loop store the position() (in $y not $x)

then $y is the column count (starting at 1) within this group
and
$x * $n + $y
is the cumulative column count.

thx, now i got it ;)

--
Herwig Posedu

unycom Information Technology Services GmbH
Schmiedlstrasse 1/III
A-8042 Graz

Tel: ++43/316/818828-19
Fax: ++43/316/818828-38

herwig(_dot_)posedu(_at_)unycom(_dot_)com
www.unycom.com




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



<Prev in Thread] Current Thread [Next in Thread>