[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Excluding too much in nested for-each

Subject: RE: Excluding too much in nested for-each
From: "Ragulf Pickaxe" <jawxml@xxxxxxxxxxx>
Date: Wed, 21 Apr 2004 09:29:58 +0000
RE:  Excluding too much in nested for-each
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.