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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
+ Stylus Studio Technical Forum (14621)
+ Website Feedback (249)
- XSLT Help and Discussion (7625)
-> + Use of before and after string (3) Sticky Topic
-> - How do I substitute element ty... (1)
-> + How does one add working days ... (4)
-> - Help, I have existing XLT and... (1)
-> + Need help on XSLT issue - (2)
-> + EDI to XML Conversion (7)
-> - XML To JSON Conversion using X... (1)
-> + Formatting Paragraphs to same ... (2)
-> - Grouping of records (1)
-> + Problems with xsd 1.1 (4)
-> + XML to HL7 mapping (3)
-> + XSLT 3 and Iterate (2)
-> + XSL-FO to PDF preview (3)
-> + java.lang.RuntimeException: Er... (2)
-> + Create Acroforms with Stylus X... (2)
-> + How to change XSLT parameter s... (3)
-> + how to change format of the da... (2)
-> + Search "Next 8 Results " doesn... (2)
-> - Support for Git (1)
-> + newbee (8)
-- [1-20] [21-40] [41-60] Next
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
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
(Deleted User) Subject: Removing duplicates entries.
Author: (Deleted User)
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

   
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.