[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

extracting unique elements

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

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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.