This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Problem using preceding-sibling
- From: David Carlisle <davidc at nag dot co dot uk>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Tue, 14 May 2002 16:06:37 +0100
- Subject: Re: [xsl] Problem using preceding-sibling
- References: <001801c1fb55$dbfeb7e0$9d47b9a3@austin.apc.slb.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
> I try to get the immediate sibling by checking the position, however I get
> always the first node.
I think you just want
select="preceding-sibling::*[1]"
which is the preceding element. if you use node() you will just select
the preceding white space.
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list