Re: choosing next sibling
<xsl:copy-of select="/Foo/Bar[position() mod 2 = 1]"/> <xsl:copy-of select="/Foo/Bar[position() mod 2 = 1]/following-sibling::Bar"/> On Fri, 20 Aug 2004 16:17:53 -0700 (PDT), Anthony Ettinger <apwebdesign@xxxxxxxxx> wrote: > Hi, > > I have a xml doc that looks like this > > <Foo> > <Bar>oneA</Bar> > <Bar>oneB</Bar> > <Bar>twoA</Bar> > <Bar>twoB</Bar> > <Bar>threeA</Bar> > <Bar>threeB</Bar> > </Foo> > > and I need to have two xpath expressions that will do > the following things: > > First one: > 1) Select every other sibling starting with the the > first <Bar>. > > ie - oneA, twoA, threeA > > and another xpath expression that does this: > > 2) Select the value of the next sibling of the node in > the first expression. > > ie - oneB, twoB, threeB > > Thank you, > > ===== > Anthony Ettinger > Phone: (408) 656-2473 > apwebdesign@xxxxxxxxx > http://www.apwebdesign.com > > _______________________________ > Do you Yahoo!? > Win 1 of 4,000 free domain names from Yahoo! Enter now. > http://promotions.yahoo.com/goldrush
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