[reposting my answer on this list, from xpath-comments]
in xpath2
/chapter/(title[1]/(.,following-sibling::node()) except
title[2]/(.,following-sibling::node())
is probably the most literal translation into xpath, but others are
possible eg
for $end in /chapter/title[2]
return
/chapter/(title[1]/(.,following-sibling::node()[. << $end],$end)
In XPath1 it's probably hard to do but in xpath1+xslt1 (so you can define
variables) then again it's possible.
David
--~------------------------------------------------------------------
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>
--~--