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: looking ahead during a for-each


> My xsl needs to iterate over this group of sense elements, 
> treating each
> one differently depending on whether the NEXT sense element 
> in document
> order has an n attribute. 

> <xsl:template match ="divgen">
>     <xsl:for-each select="following-sibling::sense">
>         <xsl:choose>
>             <xsl:when test="following-sibling::sense/@n">

That should be  test="following-sibling::sense[1]/@n"

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]