Correction:
test="(preceding-sibling::A[1]|preceding-sibling::B[1])[last()][self::B]"
MK
-----Original Message-----
From: Michael Kay [mailto:mike(_at_)saxonica(_dot_)com]
Sent: 22 January 2005 17:45
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] preceding A or B which comes first
test="(preceding-sibling::A[1]|preceding-sibling::B[1])[self::B]"
Michael Kay
http://www.saxonica.com/
-----Original Message-----
From: Jim_Albright(_at_)wycliffe(_dot_)org
[mailto:Jim_Albright(_at_)wycliffe(_dot_)org]
Sent: 22 January 2005 17:32
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] preceding A or B which comes first
<B></B>
<A></A>
<A></A>
<B></B>
<A></A>
<A></A>
<B></B>
<C></C>
<A></A>
At <A>, I want to do something based on the condition that
<B> precedes
<A> with no intervening <A>.
<B></B>
<A></A> True
<A></A> False
<B></B>
<A></A> True
<A></A> False
<A></A> False
<B></B>
<C></C>
<A></A> True
I have been working with position but that doesn't seem to be
the right
thing.
Jim Albright
704 843-0582
Wycliffe Bible Translators
--~------------------------------------------------------------------
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>
--~--
--~------------------------------------------------------------------
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>
--~--