xsl-list
[Top] [All Lists]

xsl:grouping for multiple categories?

2003-12-09 11:35:44
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



<Prev in Thread] Current Thread [Next in Thread>
  • xsl:grouping for multiple categories?, james walker <=