RE: [xsl] preceding A or B which comes first

Subject: RE: [xsl] preceding A or B which comes first
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sat, 22 Jan 2005 17:45:17 -0000
test="(preceding-sibling::A[1]|preceding-sibling::B[1])[self::B]"

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

> -----Original Message-----
> From: Jim_Albright@xxxxxxxxxxxx [mailto:Jim_Albright@xxxxxxxxxxxx] 
> Sent: 22 January 2005 17:32
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> 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

Current Thread