xsl-list
[Top] [All Lists]

RE: Excluding too much in nested for-each

2004-04-21 02:29:58
Hi again,

Found a solution.

I changed this line:

<xsl:for-each select="/root/Elements/Elem[(_at_)Date=current()][not(preceding-sibling::Elem[(_at_)Date=current()]/ElemID=ElemID][not(@Type='1' or @Type='3']"/> <!-- This for-each line gives the problem -->

to:
<xsl:for-each select="/root/Elements/Elem[(_at_)Date=current()][not(preceding-sibling::Elem[(_at_)Date=current() and not(@Type='1' or @Type='3')]/ElemID=ElemID][not(@Type='1' or @Type='3']"/>

Thus, I have limited the comparing to preceding elements to only those preceding that in themselves are valid.

If this is not the way that the grouping of elements, shown in last mail, would normaly be done - or I have overlooked something - I would still be happy to hear of this.

Regards,
Ragulf Pickaxe :-)

_________________________________________________________________
Få alle de nye og sjove ikoner med MSN Messenger http://www.msn.dk/messenger



<Prev in Thread] Current Thread [Next in Thread>