This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: newbie question...
- From: Jeni Tennison <jeni at jenitennison dot com>
- To: "Terje Kristensen" <terje dot kristensen at igroup dot no>
- Cc: xsl-list at lists dot mulberrytech dot com
- Date: Fri, 30 Nov 2001 10:51:43 +0000
- Subject: Re: [xsl] newbie question...
- Organization: Jeni Tennison Consulting Ltd
- References: <4C6B084492C1DE4CBCE2B6052BEA1BB91C680D@office.IGROUP>
- Reply-to: xsl-list at lists dot mulberrytech dot com
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>
</xsl:for-each>
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
somewhere?
Cheers,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list