This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: getting distinct content from list (?)


Kurt,
Your Problem is simple but without you providing the XML file, nothing much can be done.can you please send a snip.. of your xml so that its easu to sort your problem.
Vasu
From: Kurt George Gjerde <kurt.gjerde@intermedia.uib.no>
Reply-To: xsl-list@lists.mulberrytech.com
To: <xsl-list@lists.mulberrytech.com>
Subject: [xsl] getting distinct content from list (?)
Date: Thu, 22 Aug 2002 16:31:10 +0200 (MET DST)

Hi,

The least of my xslt problems at the moment is this one (I have others
which I'm sure I'll come back to ;). This is probably easy
but I just can't see it. Here it goes.

I have an xpath which results in a list like:
'cynthia', 'bob', 'janet', 'bob', 'jack', 'bob', 'jack'.

These are user IDs collected from different locations in a document. The
actual xpath is:
  notify/@user |
  /ming/users/user[@global-notify='yes']/@id |
  /ming/client[@id=$myClient]/admin/@user

I need to output this as: "bob, cynthia, jack and janet".
Without the duplicates (sorted and xslt 1.0).

How?


Thanks,
-Kurt.
__________
kurt george gjerde <kurt.gjerde@intermedia.uib.no>
intermedia uib, university of bergen

Free Jon - http://www.efn.no/freejon01-2002.html


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



_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]