David Carlisle wrote:
"following-sibling::node()[1][self::exit]".
unless you are stripping white space on input, that needs to be
"following-sibling::*[1][self::exit]"
as otherwise the following node will be the white space text node
indenting <exit/>.
David, it was my understanding that any text node containing only
whitespace was always stripped. Is this an option, or am I just wrong?
Michalmas, this is a very good point - text nodes are nodes, but not
elements. In practical terms, this means that "*" will not match text,
but "node()" will.
--
Ronan Klyne
Business Collaborator Developer
Tel: +44 01189 028518
ronan(_dot_)klyne(_at_)groupbc(_dot_)com
www.groupbc.com
--~------------------------------------------------------------------
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>
--~--