Subject: [xsl] XSL Grouping From: "David B. Bitton" <david@xxxxxxxxxxxxxx> Date: Mon, 12 Nov 2001 12:23:43 -0500 |
I am looking for some help in doing grouping in XSL. I can group once (thanks to the FAQ at dpawson), but I need to group again, based on the same tree. Here is sample data: <Transactions> <Transaction id="1"> <CtrlDate type="DateTime">2001-11-09T15:52:16</CtrlDate> <CtrlCount type="Integer">2</CtrlCount> <Number type="StringX"><![CDATA[09000218]]></Number> <Title type="StringX"><![CDATA[wwwwwww]]></Title> <IsTitle type="Boolean">1</IsTitle> <TransactionID type="Integer">1</TransactionID> <ValueDate type="Date">2001-10-30T00:00:00</ValueDate> <TemplateID type="Integer">0</TemplateID> <Accountid type="Integer">1</Accountid> <Amount type="Currency">100.00</Amount> <ExchangeRate type="Currency">1.000000000</ExchangeRate> <ReferenceNo type="StringX"/> <TType type="StringX"><![CDATA[B]]></TType> <SenderCorrInstName type="StringX"/> <SenderCorrInstType type="StringX"/> <SenderCorrInstId type="StringX"/> <ReceiverCorrInstName type="StringX"/> <ReceiverCorrInstType type="StringX"/> <ReceiverCorrInstId type="StringX"/> <IntermediaryInstName type="StringX"/> <IntermediaryInstType type="StringX"/> <IntermediaryInstId type="StringX"/> <IntermediaryInstS2r type="StringX"/> <ThirdReimbursementInstName type="StringX"/> <ThirdReimbursementInstType type="StringX"/> <ThirdReimbursementInstId type="StringX"/> <AccountWithInstName type="StringX"/> <AccountWithInstType type="StringX"/> <AccountWithInstId type="StringX"/> <AccountWithInstS2r type="StringX"/> <BeneficiaryCustAcct type="StringX"><![CDATA[343434]]></BeneficiaryCustAcct> <BeneficiaryCustHasBei type="StringX"><![CDATA[N]]></BeneficiaryCustHasBei> <BeneficiaryCustNameaddr1 type="StringX"><![CDATA[eeeeee]]></BeneficiaryCustNameaddr1> <BeneficiaryCustNameaddr2 type="StringX"><![CDATA[eddddddd]]></BeneficiaryCustNameaddr2> <BeneficiaryCustNameaddr3 type="StringX"><![CDATA[ddddddddd]]></BeneficiaryCustNameaddr3> <BeneficiaryCustNameaddr4 type="StringX"><![CDATA[ddddddddddddd]]></BeneficiaryCustNameaddr4> <CurrencyCode type="String"/> <FxContract type="StringX"/> <Charges type="String">BEN</Charges> <RemittanceInfo1 type="StringX"/> <RemittanceInfo2 type="StringX"/> <RemittanceInfo3 type="StringX"/> <RemittanceInfo4 type="StringX"/> <FlexibleS2r type="StringX"/> <Status type="String">C</Status> <InstructionCode1 type="StringX"/> <InstructionCode2 type="StringX"/> <IsSendable type="Boolean">0</IsSendable> <IsApprovable type="Boolean">0</IsApprovable> <ApproveCount type="Number">0</ApproveCount> <IsModifiable type="Boolean">0</IsModifiable> <TemplateName type="StringX"/> <CreatedBy type="String">1000</CreatedBy> <CreatedDate type="DateTime">2001-10-30T14:00:42</CreatedDate> <ApprovedBy type="String"/> <ApprovedDate type="DateTime">1899-12-30T00:00:00</ApprovedDate> <LastmodifiedBy type="String">1000</LastmodifiedBy> <LastmodifiedDate type="DateTime">2001-11-09T15:52:16</LastmodifiedDate> <SendBy type="String"/> <SendDate type="DateTime">1900-02-05T16:21:36</SendDate> <SenderCorrInstAcct type="StringX"/> <ReceiverCorrInstAcct type="StringX"/> <IntermediaryInstAcct type="StringX"/> <ThirdReimbursementInstAcct type="StringX"/> <AccountWithInstAcct type="StringX"/> <ConfirmText type="StringX"/> <FedRefNumber type="StringX"/> <TRNNumber type="StringX"/> </Transaction> <Transactions> This is one transaction. First we group by Status, no prob. Now I want to group by CurrencyCode within each Status group. I'm just not seeming to get the right combo of xsl:key and key() XPath in the sub for-each. Can someone lend a hand? Tx :) -- David B. Bitton david@xxxxxxxxxxxxxx Diversa ab illis virtute valemus.
Attachment:
pgp00001.pgp
Description: PGP signature
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Localising Submit/Clear b, David Carlisle | Thread | Re: [xsl] XSL Grouping, Jeni Tennison |
[xsl] Re: XSL-List Digest V3 #1251,, challa sumalatha | Date | [xsl] namespace aware java-xpathapi, Sanjay Pandey/Towers |
Month |