This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: following vs following-sibling


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]