[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: preceding A or B which comes first

Subject: RE: preceding A or B which comes first
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sat, 22 Jan 2005 23:41:28 -0000
xsl preceding sibling
Correction:

 test="(preceding-sibling::A[1]|preceding-sibling::B[1])[last()][self::B]" 

MK

> -----Original Message-----
> From: Michael Kay [mailto:mike@xxxxxxxxxxxx] 
> Sent: 22 January 2005 17:45
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: 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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.