Re: [xsl] Can I Detect whether a node is *immediately* before the context node?

Subject: Re: [xsl] Can I Detect whether a node is *immediately* before the context node?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 4 Mar 2004 13:01:42 GMT
  I need to
  know if my context node is *immediately* proceeded by another node of a
  certain type,

<xsl:if test="preceding-sibling::node()[1][self::foo]">yes</xsl:if>

David

-- 
http://www.dcarlisle.demon.co.uk/matthew

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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


Current Thread