This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: looking ahead during a for-each
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] looking ahead during a for-each
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Tue, 8 May 2001 13:59:49 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> 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