Hi,
I have a situation where I have to apply xsl on some xml and generate slightly
different xml. I hope you people can help me.
this is my xml :
<Data Timestamp="2003-11-05 21:00:07">
<Fields>
<_ fn="Level1" id="F0"/>
<_ fn="Level2" id="F1"/>
<_ fn="Level3" id="F2"/>
<_ fn="TradeDate" id="F3"/>
<_ fn="TradeId" id="F4"/>
<_ fn="User" id="F5"/>
</Fields>
<Trades>
<Trade>
<F0/>
<F1/>
</Trade>
<Trade>
<F0/>
<F1>Entry</F1>
<F2/>
</Trade>
<Trade>
<F0>Mid</F0>
<F1/>
<F2/>
<F3/>
<F4>126</F4>
</Trade>
</Trades>
</Data>
and I am trying to generate :
<Data Timestamp="2003-11-05 21:00:07">
<Trades>
<Trade>
<Level1/>
<Level2/>
</Trade>
<Trade>
<Level1/>
<Level2>Entry</Level2>
<Level3/>
</Trade>
<Trade>
<Level1>Mid</Level1>
<Level2/>
<Level3/>
<TradeDate/>
<TradeId>126</TradeId>
</Trade>
</Trades>
</Data>
and my limitation is, the parser I can use should be MSXML3.0 or less.
Any kind of help will be appreciated.
~Mur
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list