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 ancestor Re: how to find elements that don't have ancestorTo: NULL Date: 10/11/2008 2:31:00 PM 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 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
