Of course, the easiest way is to get someone else to do it for you. If you
can't work that out, I suggest you google for "xsl:sort". You will find any
number of good references.
--
Charles Knell
cknell(_at_)onebox(_dot_)com - email
-----Original Message-----
From: Jimmy Åhs <jimmyahs(_at_)gmail(_dot_)com>
Sent: Mon, 22 May 2006 16:47:51 +0200
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Sorting an xml
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>
--~--
--~------------------------------------------------------------------
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>
--~--