I am trying a for-each-group inside another one, is this
possible, or do I have to do this in two following transformations??
Yes. it's absolutely possible. You can nest for-each-group statically, or
dynamically, or both. I often nest it recursively.
I tried following stylesheet. Thought about adding a
current-group() inside the group-ending-with statement,
didn't work either.
<tatbestand>
<xsl:for-each-group
select="par[(_at_)class='Entsch_normal'][not(inline[(_at_)class='*Gesetz
esstelle'])]"
group-starting-with="par[(_at_)class='Entsch_normal'][inline[(_at_)class
='*fett']]">
Since every item in the population is a par element with
@class='Entsch_normal', including this in your starting-with condition is
rather redundant.
<xsl:for-each-group select="*"
group-ending-with="par[(_at_)class='Entsch_normal'][inline[(_at_)class='
*fett']]">
Normally the inner grouping will select all the items in the outer group.
select="*" selects the children of the context item, which is the first item
in the current group. The most common usage is to use
select="current-group()" in the inner grouping. Perhaps you want
select="current-group()/* - but I'm not sure, I don't understand your
requirements well enough.
Michael Kay
http://www.saxonica.com/
--~------------------------------------------------------------------
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>
--~--