xsl-list
[Top] [All Lists]

Re: unknown number of columns...

2004-02-12 09:44:13


  .. 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.

-- 
http://www.dcarlisle.demon.co.uk/matthew

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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



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