Re: [xsl] finding position() in xpath 1.0

Subject: Re: [xsl] finding position() in xpath 1.0
From: Abel Braaksma <>
Date: Mon, 19 Mar 2007 14:10:33 +0100
David Carlisle wrote:


This won't work when there are more than one CELL that has @test='yes'. Change it as follows to work for each row and to select all CELLs that have a @test='true' in the next ROW on the same position:



   ../following-sibling::ROW[1]/CELL[@test='yes']/preceding-sibling::CELL |

This will work with input like:

   <CELL test="yes">22</CELL>
   <CELL test="yes">43</CELL>

For which is returns:


(just my interpretation of Frank Marents request)

-- Abel Braaksma

Current Thread