From: Patrick B. <pat...@jo...> - 2012-07-24 14:01:48
|
On Mon, Jul 23, 2012 at 8:47 PM, Dmitriy Shabanov <sha...@gm...>wrote: > On Tue, Jul 24, 2012 at 12:32 AM, Patrick Bosek <pat...@jo...>wrote: > >> >> There are multiple people per document. All of the documents are attached >> so you can see for your self. >> > > if so, then this is wrong > > //ticket[.//person[@has_ > signed_off = "no"] and .//person[./username = 'pat...@jo...] > and .//person[./role = 'approver']] > > because it true if any of person under ticket have attribute > has_signed_off, any (may not be same) have username ... and any (may not be > same as 1st & 2nd) have role... > This query evaluates correctly(as far as I know). But it is not the query I'm having trouble with. I'm having trouble with the below query, because it is being evaluated the same as the one you just showed. //ticket[.//person[(@has_ signed_off = 'no' and ./username = 'pat...@jo...' and ./role = 'approver')]] This query should only return a ticket that has a person with all three of the conditions match (exactly as it does when run in oXygen] > > > -- > Dmitriy Shabanov > -- Patrick Bosek Jorsek Software Cell (585) 820 9634 Office (877) 492 2960 Jorsek.com |