RE: Preceding-siblings

Subject: RE: Preceding-siblings
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Tue, 8 Aug 2000 09:58:02 +0100
> Can someone give me a simple example of how to use the 
> preceding-siblings expression properly?

To test if an <item> element is the first <item> child of its parent:

<xsl:if test="not(preceding-sibling::item)">This is the first</xsl:if>

Mike Kay


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


Current Thread