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:46:10 +0200
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]]


Within an XSLT stylesheet you will need to escape the '<<' operator as '&lt;&lt;'.
--


	Martin Honnen
	http://msmvps.com/blogs/martin_honnen/

Current Thread