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: XPath question


Your expression selects first the current node (div type='introduction),
then any of its children (which are head, pb, div type='partie'), then any
pb child of one of these children. Only the second pb in your example is a
child of a child of div type='introduction'.  

Linda

> -----Original Message-----
> From: Sydney [mailto:moisi_fr@yahoo.fr]
> Sent: Thursday, May 11, 2000 1:03 PM
> To: XSL-List@mulberrytech.com
> Subject: XPath question
> 
> 
> Hi
> 
>     <div type="introduction">
>     <head>Introduction</head>
>     <pb/>
>     
>     <div type="partie">
>     <p>Test
>     </p>
>     <pb/>
>     </div>
>     
>     </div>
> 
> <xsl:template div[@type='introduction']">
> <xsl:for-each select="./*/pb">
> Find pb
> </xsl:for-each>
> </xsl:template>
> 
> Why xt find only one pb.
> 
> Thanks
> Sydney
> 
> ___________________________________________________________
> Do You Yahoo!?
> Achetez, vendez! À votre prix! Sur http://encheres.yahoo.fr
> 
> 
>  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]