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. XMLOp.txt XML file
resultxslt.xslt XSLT file
|