xsl-list
[Top] [All Lists]

Re: choosing next sibling

2004-08-23 11:31:32
That worked! You da man.

Thanks

--- Josh Canfield <joshcanfield(_at_)gmail(_dot_)com> wrote:

<xsl:copy-of select="/Foo/Bar[position() mod 2 =
1]"/>
<xsl:copy-of select="/Foo/Bar[position() mod 2 =
1]/following-sibling::Bar[1]"/>

On Fri, 20 Aug 2004 16:17:53 -0700 (PDT), Anthony
Ettinger
<apwebdesign(_at_)yahoo(_dot_)com> 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(_at_)yahoo(_dot_)com
http://www.apwebdesign.com

_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter
now.
http://promotions.yahoo.com/goldrush



--+------------------------------------------------------------------
XSL-List info and archive: 
http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to:
http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--




--+------------------------------------------------------------------
XSL-List info and archive: 
http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to:
http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--




=====
Anthony Ettinger
Phone: (408) 656-2473
apwebdesign(_at_)yahoo(_dot_)com
http://www.apwebdesign.com


        
                
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 


<Prev in Thread] Current Thread [Next in Thread>