[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Grouping a List into A Grid Structure

Subject: Re: Grouping a List into A Grid Structure
From: Jeff Sese <jeferson.sese@xxxxxxxxxxxx>
Date: Mon, 23 Jun 2008 17:33:30 +0800
Re:  Grouping a List into A Grid Structure
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.