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@xxxxxxxxxxxxxxxxxxxxxx]
> Sent: Friday, December 28, 2001 9:52 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: 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
|