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]

AW: Grouping ?


hi kanthi, 

you´ll find solutions for grouping questions and many other things on david
pawsons collection of FAQs to XSLT. 

great source of information!

thanx david

chers 
harald

http://www.dpawson.co.uk/xsl/sect21.html




-----Ursprüngliche Nachricht-----
Von: Kanthi Damodaran [mailto:kanthi_damodaran@hotmail.com]
Gesendet am: Freitag, 8. Juni 2001 14:50
An: xsl-list@lists.mulberrytech.com
Betreff: [xsl] Grouping ?

Hello everyone -

I am having a problem with what I believe is a grouping issue. My XML looks 
something like this

<OuterTag>
<Books>
	<Book id = "1">
		<Title>XML</Title>
		<Author>ABC</Author>
	</Book>
	<Book id ="2">
		<Title>XSL</Title>
		<Author>DEF</Author>
	</Book>
:
:
</Books>
<Addresses>
	<Address id = "1">
		<Street>Washington Street</Street>
		<Country>USA</Country>
	</Address>
	<Address id = "2">
		<Street>Oxford Street</Street>
		<Country>United Kingdom</Country>
	</Address>
:
:
</Addresses>
<Publishers>
	<Publisher id ="1">
		<Name>MacMillan Inc</Name>
	</Publisher>
	<Publisher id ="2">
		<Name>Publishers Inc</Name>
	</Publisher>
:
:
</Publishers>
</OuterTag>

And the output I am looking for is something like this [if the id's match 
for the childnodes then group it together]

First
Title : XML
Author : ABC
Address : Washington Street, USA
Publisher : MacMillan Inc

Second
Title : XSL
Author : DEF
Address : Oxford Street, United Kingdom
Publisher : Publishers Inc

and so on ....

Any idea will be appreciated.

Thanks
K
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


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

 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]