compare 2 nodesets
Hi,
I have got the following in xml document
<Input>
<Data>
<group/>
<name>EXTENSION_ONE</name>
</Data>
<Data>
<group>GROUP_TWO</group>
<name>EXTENSION_TWO</name>
</Data>
<Data>
<group/>
<name>EXTENSION_THREE</name>
</Data>
</Input>
and the following as a variable in the xsl
<xsl:variable name="dataNames">
<data name="EXTENSION_ONE" group=""/>
<data name="EXTENSION_TWO" group="GROUP_TWO"/>
</xsl:variable>
i would like to get the following output
<Input>
<Data>
<group/>
<name>EXTENSION_ONE</name>
</Data>
<Data>
<group>GROUP_TWO</group>
<name>EXTENSION_TWO</name>
</Data>
</Input>
what i'm trying to do is iterate through the Data in the xml and for each input/Data match the name and group against the name and group in variable dataNames
any ideas on how to do this ?
Last edited by nguna; July 29th, 2009 at 06:03 AM..
|