Subject: RE: looking ahead during a for-each
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Tue, 8 May 2001 13:59:49 +0100
|
> 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
|