Complex predicate question
Hi folks,
I am working with an xml document that has the form (obviously there is more to it, but this is the relevant bit):
<object>
<hasOne>
<relate from="xxx" />
</hasOne>
</object>
I am trying to write an XPath (1.0) expression that selects all the <hasOne> nodes which have a <relate> node which have a specific 'from' attribute. I came up with:
"/object/hasOne[/descendant::relate/attribute::from='zzz']"
but it's not working for me. Any thoughts? Thanks in advance,
=dave=
|