RE: [xsl] Excluding too much in nested for-each

Subject: RE: [xsl] Excluding too much in nested for-each
From: "Ragulf Pickaxe" <jawxml@xxxxxxxxxxx>
Date: Wed, 21 Apr 2004 09:29:58 +0000
Hi again,

Found a solution.

I changed this line:

<xsl:for-each select="/root/Elements/Elem[@Date=current()][not(preceding-sibling::Elem[@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[@Date=current()][not(preceding-sibling::Elem[@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 :-)

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

Current Thread