XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Avantika DharmagaddaSubject: Removing duplicates entries.
Author: Avantika Dharmagadda
Date: 02 Jan 2008 10:10 AM
Hi All,

I am a newbie to XSLT and I had a questions regarding removing duplicates in XML.

My XML looks smthg like this:

<item xsi:type="ns1:vendorProcess">
<waferProcessCode xsi:type="ns1:waferProcessCodeType">0.18C1P4M33.18</waferProcessCode>
<waferSize xsi:type="xsd:integer">8</waferSize>
<fabCode xsi:type="ns1:fabCodeType">E_CHRT0608</fabCode>
<roadmapIndicator xsi:type="ns1:roadmapIndicatorType"/>
<riskStatus xsi:type="ns1:riskStatus">R</riskStatus>
</item>
<item xsi:type="ns1:vendorProcess">
<waferProcessCode xsi:type="ns1:waferProcessCodeType">0.18C1P4M33.18</waferProcessCode>
<waferSize xsi:type="xsd:integer">8</waferSize>
<fabCode xsi:type="ns1:fabCodeType">E_MAGNC308</fabCode>
<roadmapIndicator xsi:type="ns1:roadmapIndicatorType"/>
<riskStatus xsi:type="ns1:riskStatus">R</riskStatus>
</item>

I am trying to pickout the waferProcessCode and assign it to a radio button. But Right now, my xslt code shows up duplicates i.e., for above example I get 2 radio buttons with the same value "0.18C1P4M33.18". I would want just one radio button to show up irrespective of how many ever similar values are there for a waferProcessCode.

Can someone pls help me how I need to go about doing that?? Any suggestions or sample code would be of gr8 help to put me in the right direction.

I have attached my xslt and XML file


Thanks,
Avantika.


UnknownXMLOp.txt
XML file

Unknownresultxslt.xslt
XSLT file

Posttop
Alberto MassariSubject: Removing duplicates entries.
Author: Alberto Massari
Date: 03 Jan 2008 08:40 AM
This is a grouping scenario: have a look at http://www.jenitennison.com/xslt/grouping for several solutions.

Alberto

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.