xsl-list
[Top] [All Lists]

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

2004-03-04 06:01:42

  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