Re: [xsl] Finding nodes between other nodes

Subject: Re: [xsl] Finding nodes between other nodes
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Fri, 23 Apr 2010 15:50:42 +0200
Martin Honnen wrote:
Nic Gibson wrote:

I'm trying to find all processing instructions that occur between the current
node (which will always be a text node in this case) and the next text node
(in document order).

following::processing-instruction()[. >> current() and . << current()/following::text()[1]]

I think the ". >> current()" is always true so

following::processing-instruction()[. << current()/following::text()[1]]

should suffice.


	Martin Honnen

Current Thread