[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
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:
I hope this helps.
. . . . . . . . . Ken
At 2011-09-06 18:21 +0000, thehulk@xxxxxxxxxxx wrote:
Re: [xsl] Muenchian troubles - only getting first group - I have my answer
Subject: Re: [xsl] Muenchian troubles - only getting first group - I have my answer From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Tue, 06 Sep 2011 17:52:20 -0400 |
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@xxxxxxxxxxx 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@xxxxxxxxxxxxxxxxxxxx Google+ profile: https://plus.google.com/116832879756988317389/about Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Muenchian troubles - only get, thehulk | Thread | [xsl] WebKit transformToDocument() , Dustin N. Jenkins |
Re: [xsl] stylesheet organisation, Wendell Piez | Date | [xsl] WebKit transformToDocument() , Dustin N. Jenkins |
Month |
Keywords