If the context node is C, then it has no preceding sibling TEXT1: the TEXT1
elements are "nephews" rather than siblings.
But I suppose this isn't really your input, as it's missing closing tags,
and I'm guessing that the answer to the question you intended to ask might
be preceding-sibling::TEXT1[1].
Michael Kay
http://www.saxonica.com/
-----Original Message-----
From: Jaime Stuardo [mailto:jstuardo(_at_)security(_dot_)cl]
Sent: 20 April 2005 23:57
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] How to get the sibling node just before the
context node?
For example,
<A>
<TEXT1>
<TEXT2>
</A>
<B>
<TEXT1>
<TEXT2>
</B>
<C>
<TEXT1>
<TEXT2>
</C>
If context node is C, I want to get only B.
I tried using preceding-sibling::TEXT1 but I always get TEXT1
of node A, but I want to get it of node B.
Thanks in advance
Jaime
--~------------------------------------------------------------------
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>
--~--
--~------------------------------------------------------------------
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>
--~--