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/10/2008 4:46:00 PM On Oct 10, 4:02=A0pm, Peyo <o...@est.ca> wrote: > kishjeff a =E9crit : > > >> 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) =3D 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 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
