This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Preceding-siblings
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>, "Xmlxslt-Devel (E-mail)" <xmlxslt-devel at lists dot sourceforge dot net>
- Subject: RE: Preceding-siblings
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Tue, 8 Aug 2000 09:58:02 +0100
- Reply-To: xsl-list at mulberrytech dot com
> 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