|
Subject: RE: [xsl] Sorting an xml From: cknell@xxxxxxxxxx Date: Mon, 22 May 2006 11:06:34 -0400 |
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@xxxxxxxxxx - email
-----Original Message-----
From: Jimmy Ehs <jimmyahs@xxxxxxxxx>
Sent: Mon, 22 May 2006 16:47:51 +0200
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
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>Chalottenlvk</name>
<count>4</count>
<unit>st</unit>
<place>Frukt och grvnt</place>
</item>
<item>
<name>Matlagningsvin</name>
<count>0,66</count>
<unit>l</unit>
<place>Vvrigt</place>
</item>
<item>
<name>Grddde</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
Grddde 1,2 l
Frukt och grvnt:
Chalottenlvk 4 st
Vvrigt:
Matlagningsvin 0,66 l
How do I do this as easy as possible?
Thnx in advance!
Jimmy
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] Evaluation of predicates , Michael Kay | Thread | RE: [xsl] Sorting an xml, B Tommie Usdin |
| [xsl] Sorting an xml, Jimmy Åhs | Date | RE: [xsl] Sorting an xml, Florent Georges |
| Month |