[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|