xsl-list
[Top] [All Lists]

[xsl] Sorting an xml

2006-05-22 07:48:34
Hi, I'm making an application that makes a shopinglist, my XML might looks like this:

--------------------------------------------------------------
<shopinglist>
   <item>
       <name>Lax</name>
       <count>8</count>
       <unit>st</unit>
       <place>Kyl och frys</place>
   </item>
   <item>
       <name>Chalottenlök</name>
       <count>4</count>
       <unit>st</unit>
       <place>Frukt och grönt</place>
   </item>
   <item>
       <name>Matlagningsvin</name>
       <count>0,66</count>
       <unit>l</unit>
       <place>Övrigt</place>
   </item>
   <item>
       <name>Grädde</name>
       <count>1,2</count>
       <unit>l</unit>
       <place>Kyl och frys</place>
   </item>
</shopinglist>
----------------------------------------------------------

The printout for this should be sorted by <place> like this:
Kyl och frys:
Lax 8 st
Grädde 1,2 l

Frukt och grönt:
Chalottenlök 4 st

Övrigt:
Matlagningsvin 0,66  l



How do I do this as easy as possible?
Thnx in advance!
Jimmy

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>