OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: [xml-dev] Quick Xpath

[ Lists Home | Date Index | Thread Index ]

> I'm pretty sure that's wrong but I'll wait for Jeni, Dave Carlisle, Mike
> Kay or one of the other XPath experts to confirm this before jumping to
> conclusions. 

the posted xpath was wrong, the evaluater was right. I'm not sure what 
is "that's" in your quote.

selects _all_ preceding siblings of th eb
b[preceding-sibling::*[local-name()= 'a']
selects all b with any a earlier.
so you need [1] and also it's always better to use self:: than name() or



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.


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS