Subject: Re: [xsl] finding position() in xpath 1.0 From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Mon, 19 Mar 2007 15:16:58 +0100 |
//CELL[position() = count(../following-sibling::ROW[1]/CELL[@test='yes']/preceding-sibling::CELL)]/following-sibling::CELL[1]
yes that's simpler, but I think it needs to be
//CELL[position() = 1 +
count(../following-sibling::ROW[1]/CELL[@test='yes']/preceding-sibling::CELL)]
as if the test node is a first child you want the first child (that is position()=1) rather than the first sibling of the node with position()=0 (as there is no such node).
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] finding position() in xpa, Abel Braaksma | Thread | Re: [xsl] finding position() in xpa, David Carlisle |
Re: [xsl] What's your visual metaph, Eric Bréchemier | Date | Re: [xsl] finding position() in xpa, David Carlisle |
Month |