Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: grouping parallel xml nodes? grouping parallel xml nodes?To: NULL Date: 7/7/2006 3:06:00 PM
Hi, all,
Does anyone give me a helpful hands?
I would like to modify one xml to the another structed xml.
This is the original one from db.
<layout>
<row type="1" name="one"/>
<row type="9999" name="first spacer"/>
<row type="2" name="two"/>
<row type="3" name="three"/>
<row type="7 name="seven"/>
<row type="9999" name="second spacer"/>
<row type="4" name="four"/>
<row type="5" name="five"/>
</layout>
The xml I want to have from the original xml above is
<layout>
<group name="nogroup">
<row type="1" name="one"/>
</group>
<group name="first spacer">
<row type="2" name="two"/>
<row type="3" name="three"/>
<row type="7 name="seven"/>
</group>
<group name="second spacer">
<row type="4" name="four"/>
<row type="5" name="five"/>
</group>
</layout>
So if @type="9999", it will be group node and then the followed sibling
nodes until the next one with @type="9999" are contained the children nodes
of the group.
thx in advance for your help.
Raffy
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
