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

A specific Transformation quesition

Subject: A specific Transformation quesition
From: Adam Van Den Hoven <Adam.Hoven@xxxxxxxxxxxx>
Date: Thu, 26 Oct 2000 16:55:13 -0700
mary laundry
I need some help figuring out how to do a somewhat complex transform (XML
into HTML) that I need help with. Its essentially a cross-tab type
situation.

I have a data set that looks something like:
<demo>
	<salesman id="0001" name="Rick Peterson">
		<account id="act001" region="midwest">Johnosn's
Laundry</account>
		<account id="act002" region="Canada">Franks's
Laundry</account>
		<account id="act003" region="Alaska">Mary's
Laundry</account>
		<account id="act004" region="New Jersey">Bill's
Laundry</account>
		<account id="act005" region="midwest">Hammond's
Laundry</account>
	<salesman>	
	<salesman id="0003" name="Ty Coon">
		<account id="act006" region="Canada">Franks's
Diner</account>
		<account id="act007" region="midwest">Johnosn's
Diner</account>
		<account id="act008" region="Canada">Hammond's
Diner</account>
		<account id="act009" region="Alaska">Mary's Diner</account>
		<account id="act010" region="Alaska">Bill's Diner</account>
	<salesman>	
</demo>

Ok, my data isn't like that but it has the same structural setup. I need to
transform that into an HTML table that looks like
----------------------------------------------------------------------------
----------------------------------------------------------------------
| Salesman	| midwest		| Canada		| Alaska
| New Jersey
----------------------------------------------------------------------------
----------------------------------------------------------------------
| Rick Peterson	| Johnosn's Laundry	| Franks's Laundry	| Mary's
Laundry	| Bill's Laundry
|		| Hammond's Laundry	|			|
|
----------------------------------------------------------------------------
----------------------------------------------------------------------
|Ty Coon	| Johnosn's Diner	| Franks's Diner		|
Mary's Diner	|
|		|			| Hammond's Diner	| Bill's
Diner	|
----------------------------------------------------------------------------
----------------------------------------------------------------------

Only in a real HTML table, preferably with row spans to fill empty cells.

Can you give me any help?
Thanks,
> 		Adam van den Hoven
> 		Internet Application Developer
> 		Blue Zone Entertainment Inc.
> 		tel. 604.685.4310
> 		fax. 604.685.4391
> 
> Blue Zone makes news interactive. http://www.bluezone.net/
> 
> 
> 
> 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.