Subject: RE: extracting unique elements From: James Garriss <jgarriss@xxxxxxxxx> Date: Fri, 04 Feb 2000 11:07:12 -0500 |
At 04:46 AM 1/28/2000 , Kay Michael wrote: >> Is there any easy way to select only the unique elements from >> an xml document. > ><xsl:for-each select="//CUSTOMER[not(.=preceding::CUSTOMER)]"> ><xsl:value-of select="."/> ></xsl:for-each>
>> <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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
XT users group, Eric van der Vlist | Thread | RE: extracting unique elements, Kay Michael |
XT users group, Eric van der Vlist | Date | Re: MSIE question, Jonathan Borden |
Month |