This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: following vs following-sibling
- From: "McKeever, Marty" <marty dot mckeever at bankofamerica dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Fri, 28 Dec 2001 10:09:47 -0500
- Subject: RE: [xsl] following vs following-sibling
- Reply-to: xsl-list at lists dot mulberrytech dot com
I've been puzzled by a similar question.
Although i've never used 'following::node()', the times that i've used
'following-sibling::node()' it appeared to return all nodes after the
context node, regardless of genealogy. I would have thought that a sibling
element MUST have the same parent as the context node, but that doesn't
appear to be the case.
Or am i missing something...
> -----Original Message-----
> From: Yan Zhu [mailto:yan.zhu@infinity-insurance.com]
> Sent: Friday, December 28, 2001 9:52 AM
> To: xsl-list@lists.mulberrytech.com
> Subject: [xsl] following vs following-sibling
>
>
>
> Is there a difference between the two? I thought
> they are the same but:
>
> I tried:
>
> <xsl:value-of select="following::url"/>
>
> which worked, but this:
>
> <xsl:value-of select="following-sibling::url"/>
>
> returns nothing while there is a following node, so
> they do behave differently?
>
> thanks
>
> yan
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list