[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
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
|