Subject: [xsl] Filtering duplicate tags From: "Buddhi D. Mahindarathne" <buddhi@xxxxxxxxxxxxxxxxxxx> Date: Tue, 27 May 2008 10:22:55 +0530 |
Hi All, Following is my sample xml file. I want to filter out similar (duplicated) elements and make a new xml which has distinct values. Matching and filtering need to be done based on Attribute on the first tag, Ex, <data name="LBL_Inch"> --> Attribute "LBL_Inch" <root> <data name="LBL_Inch"> <value>Inch</value> <comment>Inches</comment> </data> <data name="LBL_MM"> <value>mm</value> <comment>MM</comment> </data> <data name="LBL_MM"> <value>mm</value> <comment>MM</comment> </data> </root> After transformation I need a xml file like this, <root> <data name="LBL_Inch"> <value>Inch</value> <comment>Inches</comment> </data> <data name="LBL_MM"> <value>mm</value> <comment>MM</comment> </data> </root> Please help me on this... - Thank you all ____ _ _ _ _ | __ ) _ _ __| | __| | |__ (_) | _ \| | | |/ _` |/ _` | '_ \| | | |_) | |_| | (_| | (_| | | | | | |____/ \__,_|\__,_|\__,_|_| |_|_|
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Grouping output based on , Alex Maddern | Thread | Re: [xsl] Filtering duplicate tags, Mukul Gandhi |
Re: [xsl] fo:instream-foreign-objec, Peter Rushforth | Date | [xsl] conditional display of conten, Ganesh Babu N |
Month |