Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Help with transform needed Help with transform neededTo: NULL Date: 4/8/2008 7:06:00 PM
I need some help to transform some input XML. In the input XML the FromDate
and ToDate elements are identical within every Row element but, on the
output XML, I want them to appear as attributes of the root node. Can
someone help me out with the XSL?
Input XML:
<InputDataSet>
<Row>
<FromDate>21-03-2008 18:00</FromDate>
<ToDate>22-03-2008 23:59</ToDate>
<Data>12345</Data>
</Row>
<Row>
<FromDate>21-03-2008 18:00</FromDate>
<ToDate>22-03-2008 23:59</ToDate>
<Data>6789</Data>
</Row>
</InputDataSet>
Output XML:
<OutputDataSet FromDate="21-03-2008 18:00" ToDate="22-03-2008 23:59">
<Row>
<SomeData>12345</SomeData>
</Row>
<Row>
<SomeData>6879</SomeData>
</Row>
</OutputDataSet>
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
