xsl-list
[Top] [All Lists]

Re: [xsl] Finding nodes between other nodes

2010-04-23 08:51:05
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
        http://msmvps.com/blogs/martin_honnen/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--