Jeff Sese wrote:
Hi
<root>
<list>
<item type="a">list 1 item 1</item>
<item type="b">list 1 item 2</item>
</list>
<list>
<item type="a">list 2 item 1</item>
<item type="b">list 2 item 2</item>
<item type="b">list 2 item 3</item>
<item type="b">list 2 item 4</item>
</list>
<list>
<item type="a">list 3 item 1</item>
<item type="b">list 3 item 2</item>
<item type="b">list 3 item 3</item>
</list>
</root>
But I want to have this:
<root>
<list>
<item type="a">list 1 item 1</item>
<item type="a">list 2 item 1</item>
<item type="a">list 3 item 1</item>
<item type="b">list 1 item 2</item>
<item/>
<item/>
<item/>
<item type="b">list 2 item 2</item>
<item type="b">list 3 item 2</item>
<item/>
<item type="b">list 2 item 3</item>
<item type="b">list 3 item 3</item>
<item/>
<item type="b">list 2 item 4</item>
<item/>
</list>
</root>
I tried to extrapolate the exact rules to transform between those two
formats, but I failed to do so. Could you please explain a bit
further?
By the way, at first glance, it seems strange to want to loose
structure, from a more structured to less structured XML format.
Usually the question is the other way around. But this is maybe
because I failed to see the relation between the two formats.
Regards,
--drkm
_____________________________________________________________________________
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--