[xsl] Need help with XSL and XPath

Subject: [xsl] Need help with XSL and XPath
From: Lassi Seppälä <lsseppal@xxxxxxxxx>
Date: Tue, 23 May 2006 01:48:25 +0300
Here's a simplified description of my problem:

I've got an XML document with multiple entries of <element> as shown below. The <name>s are unique, but the <number> can be same for mulpitle entries of <element>. The XML document isn't sorted in anyway.

<element>
			<name>name</name>
			<number>1</number>
</element>

Now I need the XSL stylesheet to print out something like this:

number 1
	name1
	name4
	name7

number 25
	name2
	name3

number 100
	name5
	name6

So each "number X" is only printed once and then all the <element>s that have the number X in the <number> tags are printed below that. Then the next biggest number is printed and so on.

Any advice?

--
Lassi

Current Thread