|
Subject: Re: [xsl] Grouping a List into A Grid Structure From: Florent Georges <lists@xxxxxxxxxxxx> Date: Mon, 23 Jun 2008 10:38:12 +0200 (CEST) |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] Grouping a List into A Grid S, Jeff Sese | Thread | Re: [xsl] Grouping a List into A Gr, Jeff Sese |
| Re: [xsl] the future of xslt, Andrew Welch | Date | Re: [xsl] the future of xslt, bryan rasmussen |
| Month |