Altova Mailing List Archives
>microsoft.public.xsl Archive Home
>Thread Prev - Re: Using preceding-sibling on xsl:variable
Re: Using preceding-sibling on xsl:variable
Date: 4/9/2004 10:57:00 AM
Hello, Scott! You wrote on Thu, 08 Apr 2004 23:53:54 GMT: S> It does seem to center on the: S> <xsl:for-each select="//DataRow[@CLIENT_ID = S> current()/@CLIENT_ID][not(@SSN = preceding-sibling::DataRow[@CLIENT_ID = S> current()/@CLIENT_ID]/@SSN)]"> S> statement, but I have no idea what this is doing. S> What does  do?? Is this an "AND"?? No. Here is the steps. 1. //DataRow[@CLIENT_ID = current()/@CLIENT_ID] - selects all datarows with the client_id attribute equals to client_id attribute of the current datarow. 2. The second predicate - [not(@SSN = preceding-sibling::DataRow[@CLIENT_ID = S> current()/@CLIENT_ID]/@SSN)] - applay group filtering by @SSN. It can be rewritten as [not(@SSN = all-preceding-sibling-DataRows-with-the-same-client-id/@SSN)] [Sorry, skipped] With best regards, Alex Shirshov.