[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
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 23:41:28 -0000 |
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: [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@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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] preceding A or B which co, Michael Kay | Thread | [xsl] XSLT Courses in the UK, Paul Hart |
Re: [xsl] XSLT Courses in the UK, Dimitre Novatchev | Date | Re: [xsl] XSLT Courses in the UK, Paul Hart |
Month |