Re: [xsl] newbie question...

Subject: Re: [xsl] newbie question...
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Fri, 30 Nov 2001 10:51:43 +0000
Hi Terje,

> Since I'm new at this, what I did was just copy/paste the code you
> sent me. It worked, but I only got the first element in each table.
> How do I get the next 21 elements in each table?

The template matching ROW elements should have got the next 21
elements in each table. It collects them together in the $rows
variable and then uses them to create the rows.

> You said:
>>Then create the cells in each row by iterating over $rows.
> but because I'm not english, I don't quite understand "by
> iterating".

It means 'go through one by one'. In:

  <xsl:for-each select="$rows">
    <td><xsl:value-of select="PNS" /></td>

You're iterating over the ROW elements held in the $rows variable,
going through them one by one, and for each of them generating a td
element that holds the value of the PNS child element of the ROW.

I tried out the template on a bit of sample code and it worked fine;
perhaps you could send me the XSLT that you're using - maybe you have
a template that's overriding the one matching the ROW elements



Jeni Tennison

 XSL-List info and archive:

Current Thread