Have you considered abandoning the Muenchian approach and using the
variable approach?
The Muenchian method works easily across the entire file, and as you
say requires more convoluted values to work with subsets of the
file. And it doesn't work when using a population of items across
multiple files. But the variable method works for all cases: a
subset of a file, an entire files and multiple files (though I never
use it when the context is an entire file).
Over the years I've posted to this list a number of examples of
grouping subsets of an instance by putting the population being
grouped into a variable and then acting on the members found in that variable:
http://www.biglist.com/lists/xsl-list/archives/200401/msg00070.html
http://www.biglist.com/lists/xsl-list/archives/200401/msg00342.html
http://www.biglist.com/lists/xsl-list/archives/200501/msg00548.html
http://www.biglist.com/lists/lists.mulberrytech.com/xsl-list/archives/200902/msg00303.html
http://www.oxygenxml.com/archives/xsl-list/201104/msg00235.html
I hope this helps.
. . . . . . . . . Ken
At 2011-09-06 18:21 +0000, thehulk(_at_)comcast(_dot_)net wrote:
The problem is, I don't want to add up charges for the entire file.
The file has many accounts. I want to to add up charges by type
within each account.
...
I think the solution is to complicate the calculation of the keymap,
by concatenating an identifier of the Account to the
use="@TransTypeName" clause. Not yet tested.
--
Contact us for world-wide XML consulting and instructor-led training
Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/
G. Ken Holman mailto:gkholman(_at_)CraneSoftwrights(_dot_)com
Google+ profile: https://plus.google.com/116832879756988317389/about
Legal business disclaimers: http://www.CraneSoftwrights.com/legal
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--