Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: XPath to enforce document order [Thread Next] Re: XPath to enforce document orderTo: NULL Date: 3/17/2009 3:36:00 PM In article <49bfc015$0$31344$9b4e6d93@n...>, Martin Honnen <Martin.Honnen@g...> wrote: >> I want it to fail if the <li> appears above the <legend>, in document >> order. Or if the <label> appears below the <input>. Any ideas? >Maybe > //form[ > descendant::fieldset[ > descendant::legend[ > following-sibling::*[ > descendant-or-self::li[ > descendant::label[ > following-sibling::*[ > descendant-or-self::input > ] > ] > ] > ] > ] > ] Not that this just checks for the existence of elements in the right order. It doesn't prevent there *also* being an <li> before the <legend>. -- Richard -- Please remember to mention me / in tapes you leave behind. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
