Re: [xsl] preceding/following character?

Subject: Re: [xsl] preceding/following character?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 17 Jun 2005 11:40:07 +0100
> ><xsl:when test="preceding-sibling::bar[1]">
> 
> 
> AFAICT, that tests whether there's at least 1 bar among preceding siblings, 
> rather than whether the immediately preceding sibling is a bar.  Likewise 
> the following sibling test below.


yes you want

preceding-sibling::node()[1][self::bar]


following--sibling::node()[1][self::text()]



etc

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. 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
________________________________________________________________________

Current Thread