[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|