Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: XPath position predicates [Thread Next] Re: XPath position predicatesTo: NULL Date: 5/19/2009 5:27:00 PM On Wed, 6 May 2009, Martin Honnen wrote: > Tom Anderson wrote: > >> My thinking had been that if you have an expression E that identifies a >> node set, then E[n] selects the nth node of that set. > > I think you want > (E)[n] > so e.g. > (table[@id='mytable']/tr/td[@class='right'])[1] I finally got round to testing this, and of course you're absolutely right. Thanks! tom -- Our only chance for survival is better engineering. -- James Dyson | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
