[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: following-sibling usage

Subject: RE: following-sibling usage
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Fri, 21 Feb 2003 15:02:10 -0000
xsl axis following sibling
If you want the element that immediately follows the SOUSTHEME child of
the context node, write

SOUSTHEME/following-sibling::*[1]

The thing that follows the axis name in a step is a NodeTest. It tests
the node at the end of the axis, it doesn't determine where the
navigation starts from.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> s-oualid@xxxxxxxxxxxxx
> Sent: 21 February 2003 13:46
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  following-sibling usage
> 
> 
> Hello there,
> 
> I have a problem while using the following-sibling axis. Here's an 
> simplified example of my XML data :
> 
>   <FICHE cdId="663" catanetId="13343" type="P" lang="FRA">
>     <TITRE>140 000 CHINOIS POUR LA GRANDE GUERRE</TITRE>
>     <THEME>Histoire</THEME>
>     <SOUSTHEME>Histoire Contemporaine</SOUSTHEME>
>     <GENERIQUE>
>       <GENERAL>
>         <ENTREE lib="Durée">
>           <VALEUR>52 min</VALEUR>
>         </ENTREE>
> <!-- MORE SUBTAGS HERE -->
>       </GENERAL>
> <!-- MORE SUBTAGS HERE -->
>   </FICHE>
> 
> I want to make a test on the following sibling SOUSTHEME (subtag of 
> FICHE), as my test always returned FALSE, I decided to write 
> the data. Here's what I got in my xsl:for-each select="FICHE" :
> 
> current : <xsl:value-of select="SOUSTHEME" />
> following : <xsl:value-of select="following-sibling::SOUSTHEME[1]" />
> 
> And here's the output :
> 
> current : Biographie 
> following :
> 
> As you see, this expression failed : 
> select="following-sibling::SOUSTHEME[1]". How should I use 
> the following 
> sibling axis... I can't find my error ! :/
> 
> Any help would be appreciated. Thanks !
> 
> Simon
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • following-sibling usage
    • s-oualid - Fri, 21 Feb 2003 08:45:00 -0500 (EST)
      • David Carlisle - Fri, 21 Feb 2003 09:12:31 -0500 (EST)
      • Michael Kay - Fri, 21 Feb 2003 10:00:17 -0500 (EST) <=
      • <Possible follow-ups>
      • s-oualid - Fri, 21 Feb 2003 10:58:30 -0500 (EST)
      • cknell - Fri, 21 Feb 2003 12:16:49 -0500 (EST)

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.