RE: [xsl] Finding nodes between other nodes

Subject: RE: [xsl] Finding nodes between other nodes
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 23 Apr 2010 15:50:35 +0100
> > <xsl:variable name="next" select="following-sibling::text()[1]"/>
> > ... select="following-sibling::processing-instruction()[. &lt;&lt; 
> > $next]"/>
> 
> Sadly, no. I wouldn't be in this position were they siblings.
> 

In that case just delete "-sibling" both times.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 

Current Thread