On 06 23, 08, at 4:38 PM, Florent Georges wrote:
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
I'm using the data for an XML workflow in InDesign. The main idea is
to convert the list into a somewhat linear structure so that items
are group according to order in which they appeared in the original
list. Somewhat like a table, where there is a column for each list.
I added a wrapper element for the grouping that i want to achieve, to
make it clearer:
<root>
<list>
<group order="1st">
<item type="a">list 1 item 1</item>
<item type="a">list 2 item 1</item>
<item type="a">list 3 item 1</item>
</group>
<group order="1st">
<item type="b">list 1 item 2</item>
<item/>
<item/>
</group>
<group order="1st">
<item/>
<item type="b">list 2 item 2</item>
<item type="b">list 3 item 2</item>
</group>
<group order="1st">
<item/>
<item type="b">list 2 item 3</item>
<item type="b">list 3 item 3</item>
</group>
<group order="1st">
<item/>
<item type="b">list 2 item 4</item>
<item/>
</group>
</list>
</root>
I need the empty item element for ease of reverting back to the
original structure.
I hope this clears my problem a bit.
-- Jeff
--~------------------------------------------------------------------
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>
--~--