This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: newbie question...


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]