Re: [xsl] unknown number of columns...

Subject: Re: [xsl] unknown number of columns...
From: Herwig Posedu <herwig.posedu@xxxxxxxxxx>
Date: Fri, 13 Feb 2004 09:18:05 +0100
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.posedu@xxxxxxxxxx
www.unycom.com




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



Current Thread