[xsl] group data in XSL

Subject: [xsl] group data in XSL
From: Tham Tinh <khautinh@xxxxxxxxx>
Date: Wed, 18 Aug 2004 07:48:41 -0700 (PDT)
Hi all,

I have the following data and I would like to group
them please help.

<?xml version="1.0" standalone="yes"?>
<dsWMSRpt>
	<WMSReport>
		<AdministrationCode>ABC</AdministrationCode>
		<ReportUnitTitle>Financial
Div/Headquarters</ReportUnitTitle>
		<PositionNumber> 0934</PositionNumber>
	</WMSReport>
	<WMSReport>
		<AdministrationCode>ABC</AdministrationCode>
		<ReportUnitTitle>Part Div</ReportUnitTitle>
		<PositionNumber> 4563</PositionNumber>
	</WMSReport>
	<WMSReport>
		<AdministrationCode>ABC</AdministrationCode>
		<ReportUnitTitle>Financial Div</ReportUnitTitle>
		<PositionNumber> K948</PositionNumber>
	</WMSReport>
	<WMSReport>
		<AdministrationCode>ABC</AdministrationCode>
		<ReportUnitTitle>Human Resource
Div</ReportUnitTitle>
		<PositionNumber> 6453</PositionNumber>
	</WMSReport>
	<WMSReport>
		<AdministrationCode>ABC</AdministrationCode>
		<ReportUnitTitle>HumanResource Div</ReportUnitTitle>
		<PositionNumber> 9655</PositionNumber>
	</WMSReport>
	<WMSReport>
		<AdministrationCode>ABC</AdministrationCode>
		<ReportUnitTitle>Sale Div</ReportUnitTitle>
		<PositionNumber> SDWE</PositionNumber>
	</WMSReport>
	<WMSReport>
		<AdministrationCode>ABC</AdministrationCode>
		<ReportUnitTitle>Sale Div</ReportUnitTitle>
		<PositionNumber> 4577</PositionNumber>
	</WMSReport>
</dsWMSRpt>

Now I would like the output to group as following

Administration Code: ABC
Report Title: Financial Div
Position Number: 0934
Position Number: K948

Administration Code: ABC
Report Title: Part Div
Position Number: 4563

Administration Code: ABC
Report Title: Sale Div
Position Number: SDWE
Position Number: 4577

Administration Code: ABC
Report Title: Human Resource Div
Position Number: 6453
Position Number: 9655


=====
"It is essential to know that to be a happy person, a happy family, a happy society, it is very crucial to have a good heart, that is very crucial,"
Dalai Lama


		
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail 

Current Thread