[xep-support] set theory in XSLT

From: Somanna Ramaiah <somannar@yahoo.com>
Date: Mon Jun 29 2009 - 03:54:19 PDT

Hi All,
 

I have a xml

it has set of nodes, say group_1 and group_2

i need to get the temporarytree groups ,

1) common in both 1 and 2
2) only in WSU group1 - group2
3) only in HWMA group2 - group1

i have pasted the input file

input.xml

<componentTempTree>
        <components NAME="group_1">
                <group num="8000" >
                        <row>
                                <component no="2" id="67869568611601">row</component>
                        </row>
                </group>
                <group num="8000" >
                        <row>
                                <component no="3" id="34118726711601">row</component>
                        </row>
                </group>
                <group num="8000" >
                        <row>
                                <component no="1" id="53663065341601">row</component>
                        </row>
                        <row>
                                <component no="5" id="53663065341601">row</component>
                        </row>
                </group>
        </components>
        <components NAME="group_2">
                        <group num="1" >
                                <row>
                                        <component no="1" id="53663065341601">row</component>
                                </row>
                                <row>
                                        <component no="5" id="53663065341601">row</component>
                                </row>
                        </group>
                        <group num="1" >
                                <row>
                                        <component no="4" id="49230855341601">row</component>
                                </row>
                        </group>
                </components>
                
</componentTempTree>
========================================================

expected out put format
output.xml
<componentTempTree>
        <components NAME="group_1">
                        <group num="8000" >
                                <row>
                                        <component no="2" id="67869568611601">row</component>
                                </row>
                        </group>
                        <group num="8000" >
                                <row>
                                        <component no="3" id="34118726711601">row</component>
                                </row>
                        </group>
                        </components>
                <components NAME="group_2">
                <group num="1" >
                                <row>
                                        <component no="4" id="49230855341601">row</component>
                                </row>
                        </group>
                </components>
                <components NAME="group_1_group_2">
                        <group num="1" >
                                <row>
                                        <component no="1" id="53663065341601">row</component>
                                </row>
                                <row>
                                        <component no="5" id="53663065341601">row</component>
                                </row>
                        </group>
                </components>
        </componentTempTree>

Please help me to resolve this problem

Thanks in Advance..

Som

      Love Cricket? Check out live scores, photos, video highlights and more. Click here http://cricket.yahoo.com

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
Received on Mon Jun 29 04:40:33 2009

This archive was generated by hypermail 2.1.8 : Mon Jun 29 2009 - 04:40:35 PDT