W3C home > Mailing lists > Public > public-ws-resource-access-notifications@w3.org > November 2009

[Bug 8323] New: Frag: context node for XPath filter dialect ambiguous

From: <bugzilla@wiggum.w3.org>
Date: Tue, 17 Nov 2009 12:19:15 +0000
To: public-ws-resource-access-notifications@w3.org
Message-ID: <bug-8323-2780@http.www.w3.org/Bugs/Public/>

           Summary: Frag: context node for XPath filter dialect ambiguous
           Product: WS-Resource Access
           Version: FPWD
          Platform: PC
               URL: http://lists.w3.org/Archives/Public/public-ws-resource-
        OS/Version: All
            Status: NEW
          Keywords: externalComments
          Severity: normal
          Priority: P2
         Component: Fragment
        AssignedTo: public-ws-resource-access-notifications@w3.org
        ReportedBy: bob@freunds.com
         QAContact: public-ws-resource-access-notifications@w3.org

Reading the latest draft of WS-Eventing, I was wondering what the context
node for an Xpath 1.0 filter really is. The specification says that the
context node is "the root of the event XML". Maybe its just me but does this
mean the root node of the document where the event XML is contained or the
top element of the event XML (which one could also call 'root of the event

Suppose I have got the following event XML:

<swes:SWESEvent xmlns:swes="http://www.opengis.net/swes/1.0"

Now I want to filter via Xpath to get all events with codeSpace
"http://www.opengis.net/swes/1.0#EventCode" and value "CAPBILITIES_CHANGED".

Let us consider the following Xpath expressions:

1. swes:SWESEvent/swes:code='CAPABILITIES_CHANGED' 
2. /swes:SWESEvent/swes:code='CAPABILITIES_CHANGED'

I evaluated the expressions with different choice of context node:
- with context node root node: 1+2 are true ... 3 is false
- with context node swes:SWESEvent: 1 is false ... 2+3 are true


What would happen if the event XML is somehow wrapped already before the
Xpath is applied - or is that not allowed / considered?


<abc:Wrapper xmlns:swes="http://www.opengis.net/swes/1.0"

Again, I evaluated the expressions with different choice of context node:
- with context node root node: 1+2+3 are false
- with context node abc:someProperty: 1 is true ... 2+3 are false
- with context node swes:SWESEvent: 1+2 are false ... 3 is true

What do you think? 

Best regards,
Johannes Echterhoff

Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
Received on Tuesday, 17 November 2009 12:19:17 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:06:37 UTC