Subject: Re: [xsl] finding position() in xpath 1.0 From: Frank Marent <frank.marent@xxxxxxxxxxx> Date: Mon, 19 Mar 2007 14:15:00 +0100 |
I think I mis read your requirement. the code I posted works so long as
there is at most one node with test="yes. If you have multiple such
nodes and need to select the preceding cousin of all of them,
Then...
//CELL[@test='yes']/../preceding-sibling::ROW[1]/CELL[position() =count(../following-sibling::ROW[1]/CELL[@test='yes']/preceding- sibling::CELL)+1]
thank you very much, it works great
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] finding position() in xpa, David Carlisle | Thread | Re: [xsl] finding position() in xpa, Abel Braaksma |
Re: [xsl] finding position() in xpa, Abel Braaksma | Date | Re: [xsl] finding position() in xpa, Abel Braaksma |
Month |