<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>12051</bug_id>
          
          <creation_ts>2011-02-13 01:49:21 +0000</creation_ts>
          <short_desc>WS-E: Problem with Filter XPath suggestion</short_desc>
          <delta_ts>2011-09-13 21:35:01 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WS-Resource Access</product>
          <component>Eventing</component>
          <version>CR</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>REMIND</resolution>
          
          
          <bug_file_loc>http://www.w3.org/2002/ws/ra/snapshots/cr/wseventing.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>hasProposal</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Li Li">lli5</reporter>
          <assigned_to name="notifications mailing list for WS Resource Access">public-ws-resource-access-notifications</assigned_to>
          <cc>dug</cc>
          
          <qa_contact name="notifications mailing list for WS Resource Access">public-ws-resource-access-notifications</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>45445</commentid>
    <comment_count>0</comment_count>
    <who name="Li Li">lli5</who>
    <bug_when>2011-02-13 01:49:21 +0000</bug_when>
    <thetext>WS-Eventing Section 4.1 states that:
Clients that wish to isolate expressions from the effects of any changes to the namespace prefixes in the containing SOAP message are advised to construct expressions in a manner that avoids the use of namespace prefixes. For example, use an expression such as &quot;/a[namespace-uri()=&apos;http://www.example.com&apos;]&quot; not &quot;/ns1:a&quot;. 

This paragraph implies that xpath expression:
/a[namespace-uri()=&apos;http://www.example.com&apos;]   

is equivalent to:
/ns1:a

However, it is not. The first expression will evaluate false on XML:
&lt;ns1:a xmlns:ns1=&quot;http://www.example.com&quot; /&gt;

whereas the second one is true (given the proper namespace context).

The XPath expression equivalent to the second one is:
/*[local-name()=&apos;a&apos; and namespace-uri()=&apos;http://www.example.com&apos;]

Proposal:
Use the equivalent XPath expression instead.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45609</commentid>
    <comment_count>1</comment_count>
    <who name="Doug Davis">dug</who>
    <bug_when>2011-02-15 17:50:42 +0000</bug_when>
    <thetext>Enum needs this fix too</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45610</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Freund">bob</who>
    <bug_when>2011-02-15 17:52:39 +0000</bug_when>
    <thetext>resolved as proposed and also to be applied to enum</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>