[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: 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@xxxxxxxxxxxx [mailto:Jim_Albright@xxxxxxxxxxxx] > Sent: 22 January 2005 17:32 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|