[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

extracting unique elements


Subject: extracting unique elements
From: Clay_Rowland@xxxxxxxxxxx
Date: Thu, 27 Jan 2000 17:11:23 -0500


Is there any easy way to select only the unique elements from an xml document.
for example if i had the following xml document:

<SALESFORCE>
     <SALESPERSON NAME="BOB">
          <CUSTOMER CODE="1">ACME</CUSTOMER>
          <CUSTOMER CODE="2">BLAMMO</CUSTOMER>
     </SALESPERSON>
     <SALESPERSON NAME="TODD">
          <CUSTOMER CODE="1">ACME</CUSTOMER>
          <CUSTOMER CODE="3">KABLOOEY</CUSTOMER>
     </SALESPERSON>
     <SALESPERSON NAME="BETTY">
          <CUSTOMER CODE="4">JUICY JUICY</CUSTOMER>
          <CUSTOMER CODE="2">BLAMMO</CUSTOMER>
     </SALESPERSON>
</SALESFORCE>

I would want to only display:

ACME
BLAMMO
KABLOOEY
JUICY JUICY


thanks.



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



Current Thread
Keywords
xml