[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: newbie question...

Subject: Re: newbie question...
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Fri, 30 Nov 2001 10:51:43 +0000
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.