Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - XPath to enforce document order >Thread Next - Re: XPath to enforce document order Re: XPath to enforce document orderTo: NULL Date: 3/17/2009 9:24:00 AM Phlip a écrit : > XMLers: > > Here's my XPath: > > //form[ > ./descendant::fieldset[ > ./descendant::legend and > ./descendant::li[ > ./descendant::label and > ./descendant::input ] > ] > ] > > Its purpose is unit tests to assert that HTML has certain elements and > attributes (not shown). > > 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? Hi, This is a job for WUnit : http://reflex.gforge.inria.fr/wunit.html http://reflex.gforge.inria.fr/wunit-quick-start.html > > libxml2, 2.6.32.dfsg-4ubuntu1.1, BTW... Tx! > -- Cordialement, /// (. .) --------ooO--(_)--Ooo-------- | Philippe Poulard | ----------------------------- http://reflex.gforge.inria.fr/ Have the RefleX ! | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
