[xsl] xsl:grouping for multiple categories?

Subject: [xsl] xsl:grouping for multiple categories?
From: "james walker" <jameswalkerandy@xxxxxxxxxxx>
Date: Tue, 09 Dec 2003 18:35:44 +0000
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