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

looping problem, <xsl: for-each>??

Subject: looping problem, <xsl: for-each>??
From: "james walker" <jameswalkerandy@xxxxxxxxxxx>
Date: Tue, 07 Oct 2003 15:32:25 +0100
 looping problem
Hi,
I have the following format but am having trouble trying to group items (in html) under one common category so that it isnt repeated for every item but can act as a title:
<rss version="0.92">
- <channel>
- <item>
<title>title here</title>
<category>Top Stories</category>
<link>http</link>
<description>text is heredescription>
</item>
</channel>
<item>
<title>title here</title>
<category>top stories</category>
<link>http</link>
<description>text is heredescription>
</item>
</channel>
<item>
<title>title here</title>
<category>Stories today</category>
<link>http</link>
<description>text is heredescription>
</item>
</channel>
<item>
<title>title here</title>
<category>Stories today</category>
<link>http</link>
<description>text is heredescription>
</item>
</channel>
</rss>


e.g. the final look i wanted to create was:
<h1>top stories </h1>
ITEM1 <xsl:value-of select="description">
ITEM2 <xsl:value-of select="description">
<h1>stories today</h1>
ITEM3 <xsl:value-of select="description">
ITEM4 <xsl:value-of select="description">

but wasn't sure whetehr i should use count or for-each fucntion to gather common category title for several items.....

_________________________________________________________________
Find a cheaper internet access deal - choose one to suit you. http://www.msn.co.uk/internetaccess



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.