xsl-list
[Top] [All Lists]

Re: preceding/following character?

2005-06-17 03:40:07


<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
________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>