Re: [xsl] Grouping using concatenated key

Subject: Re: [xsl] Grouping using concatenated key
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 11 Dec 2006 16:20:26 GMT
   <xsl:template match="/">

so you are at the document root. in a well formed document there can
only be exactly one element child of / so

 <xsl:for-each
select="BillDetail[

you are for-eaching over at one element so grouping is not going to be
very interesting.

i suspect that you have multiple BillDetail elements and they have a
parent element, in which case you should (or could) put the grouping
code  in the template for that element.

Please see the posting guidelines at the list home page, which suggests
posting _complete_  _small_ examples. Your posted input was quite large
but has lots of detail not relevant to the problem   (<FROM_CITY> and
friends) but isn't a well formed document as the two elements have no
parent element so peopel can't post code that actually runs on your
example.

David

Current Thread