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 order Re: XPath to enforce document orderTo: NULL Date: 3/17/2009 8:21:00 PM Martin Honnen wrote:
> Maybe
> following-sibling::*[
> descendant-or-self::input
Ktx try this:
path = "//fieldset[
descendant::legend[
following-sibling::*[
descendant-or-self::li[
descendant::label[
following-sibling::*[
descendant-or-self::br[
following-sibling::*[
descendant-or-self::input ] ] ] ] ] ] ] ]"
Problem: Here's the sample input:
<fieldset>
<legend>Personal Information</legend>
<ol>
<li id="control_user_first_name">
<label for="user_first_name">First name</label>
<input type="text" name="user[first_name]" id="user_first_name" />
<br/>
</li>
</ol>
</fieldset>
Notice the <br/> is below the <input>, not above it.
Ironically, I can move other elements around and successfully fail the query.
Bug in libxml2? Pilot error? Gap in the language specification?
--
Phlip
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
