xsl-list
[Top] [All Lists]

[xsl] Need help with XSL and XPath

2006-05-22 15:48:55
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






--~------------------------------------------------------------------
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>