[xsl] Group

Subject: [xsl] Group
From: "Sathasivam, Elayaraja" <elayaraja.sathasivam@xxxxxxxxxxxxx>
Date: Mon, 28 Jul 2008 09:36:09 +0530
group_list = list of access charges
(Document/Invoice/InvoiceItem[@CT='A']), grouped by attribute TM, SP

<xsl:key name="by-tm" match="Att[@Ty='TM']" use="@Id"/>

<xsl:key name="by-sp" match="Att[@Ty='SP']" use="@Id"/>

How to group by TM, SP. I mean group of TM(group of SP) ????????


<?xml version='1.0' encoding="UTF-8"?>
<Document>
<Invoice>
<InvoiceItem NumItem="1" ArticleString="16.4.15.1.A.AC.F.P" CT="A"
CollInd="N">
<AggSet>
<Att Ty="TM" Id="WLCO" />
<Att Ty="SP" Id="WLSC" />
<Att Ty="SN" Id="GTEL" />
<Att Ty="MRKT" Id="GSM" />
</AggSet>
</InvoiceItem>
<InvoiceItem NumItem="1" >
<AggSet>
<Att Ty="TM" Id="OCCRP" />
<Att Ty="SP" Id="OS" />
<Att Ty="SN" Id="ADMIN" />
<Att Ty="MRKT" Id="EDS" />
</AggSet>
</InvoiceItem>
<InvoiceItem NumItem="1" >
<AggSet>
<Att Ty="TM" Id="OCCRP" />
<Att Ty="SP" Id="OS" />
<Att Ty="SN" Id="DUNN" />
<Att Ty="MRKT" Id="EDS" />
</AggSet>
</InvoiceItem>
</Invoice>
</Document>

Regards,
Raja






This message contains information that may be privileged or confidential and
is the property of the Capgemini Group. It is
intended only for the person to whom it is addressed. If you are not the
intended recipient, you are not authorized to
read, print, retain, copy, disseminate, distribute, or use this message or any
part thereof. If you receive this message
in error, please notify the sender immediately and delete all copies of this
message.

Current Thread