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

xsl:grouping for multiple categories?

Subject: xsl:grouping for multiple categories?
From: "james walker" <jameswalkerandy@xxxxxxxxxxx>
Date: Tue, 09 Dec 2003 18:35:44 +0000
xsl grouping multiple
i have this structure of xml:

<root>
	<item>
		<category></category>
		<title></title>
		<url></url>
		<description></description>
	</item>
               <item>
		<category></category>
		<title></title>
		<url></url>
		<description></description>
	</item>

</root>

Is it possible to group items according to several categories? For example, an item may be under the category "today's news" but also "relevant technology":

<item>
		<category>today's news</category>
                               <category>relevant technology</category>
		<title></title>
		<url></url>
		<description></description>
</item>

given i have a key <xsl:key name="items-by-category" match="item" use="category" />, would this create 2 key value pairs for one item?
I tried putting more than one category for each item but in the output, the whole category disappeared!!


any help would be greatly appreciated
james

_________________________________________________________________
Hotmail messages direct to your mobile phone http://www.msn.co.uk/msnmobile


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.