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

Re: Looping and assigning into variable

Subject: Re: Looping and assigning into variable
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Thu, 28 Mar 2002 16:11:52 +0000
Re:  Looping and assigning into variable
Hi Venkat,

> Basically Each 'Header' element has 1 'Comment' child element in it.
> So I have to loop through all headers and finally get the complete
> list of concatenated 'Comment's

Just do:

  <Comments>
    <xsl:for-each select="Header">
      <xsl:value-of select="Comment" />
    </xsl:for-each>
  </Comments>

In other words, construct the concatenated list of comments when you
need the concatenated list of comments, don't try to build it at the
same time as doing something else. It's very hard doing two things at
once with XSLT.

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.