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]

RE: How to use following-sibling ?




> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Samuzeau
> Pascal
> Sent: 12 April 2001 16:12
> To: xsl-list@lists.mulberrytech.com
> Subject: [xsl] How to use following-sibling ?
>
>
> Hi,
>
> I have a variable as :
>
> <xsl:variable name="$tree" select="$data/Cases"/>

It should be name="tree", the $ is an error.
>
> I want to recognize all child which belong of Cases[1] and named Step
>
> <xsl:variable name="brothers" select="following-sibling::$tree"/>
>
> But, it appears that is wrong.
>
If you wanted the siblings of the <Cases> elements, you could write
$tree/following-sibling::*

But that's not how I read your requirement, which suggests you want

$tree[1]/child::Step

However, it's difficult to understand your English, so it might be easier if
you showed us the structure of your source XML and highlighted which nodes
you want to select.

Mike Kay
Software AG


 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]