Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: how to find elements that don't have ancestor [Thread Next] Re: how to find elements that don't have ancestorTo: NULL Date: 10/12/2008 9:40:00 AM On Sat, 11 Oct 2008 14:31:08 +0100, Peter Flynn <peter.nosp@m...> wrote: >kishjeff wrote: >> On Oct 10, 4:02 pm, Peyo <o...@est.ca> wrote: >>> kishjeff a écrit : >>> >>>>> Can someone tell me how to find all the elements of type 'table' which >>>>> have an attribute named 'source' and are not descendents of >>>>> 'querybox' ? >>>> oh geez, I'm trying out xpath. sorry.. I forgot to mention that >>>> insignificant item. >>> Why not : >>> //table[@source and (count(ancestor::querybox) = 0)] >>> >>> Cheers, >>> >>> p. >> >> thanks so much. that works just fine evidently. is there a way of >> doing it without count, say with some sort of "not >> decendent::querybox" sort of thing? >> >> regards in any case >> Jeff > >//table[@source and not(ancestor::querybox)] > >///Peter ah its so easy... thanks. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
