[xsl] Re: Using xsl:key to list unique nested values

Subject: [xsl] Re: Using xsl:key to list unique nested values
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Mon, 7 Jan 2002 23:59:01 -0800 (PST)
See my reply to a similar message:

http://aspn.activestate.com/ASPN/Mail/Message/xsl-list/969323

Hope this really helped.

Cheers,
Dimitre Novatchev.


"Trem Stamp" <trem at socialchange dot net dot au> wrote:
I have an xml file with duplications of elements, which I can list uniquely
fine (used the XSL example by Jenni Tennison).

The xml file looks like this:

<PROJECTS>
<PROROW>
<id>1</id>
<name>Customer 1</name>
<project_name>Project 1</project_name>
</PROROW>
<PROROW>
<id>2</id>
<name>Customer 1</name>
<project_name>Project 2</project_name>
</PROROW>
<PROROW>
<id>3</id>
<name>Customer 2</name>
<project_name>Project 1</project_name>
</PROROW>
<PROROW>
<id>3</id>
<name>Customer 2</name>
<project_name>Project 4</project_name>
</PROROW>
<PROROW>
<id>3</id>
<name>Customer 1</name>
<project_name>Project 1</project_name>
</PROROW>
</PROJECTS>

I can get the listing of Unique customers

Customer 1
      Project 1
      Project 2
      Project 1

Customer 2
      Project 1
      Project 1

However I'm unsure as to how to only list the unique Projects within these
listings.  I've checked the archives and Dawsons (but couldn't find anything
obvious).



__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread