This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

A specific Transformation quesition


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]