<?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>4303</bug_id>
          
          <creation_ts>2007-02-06 20:36:12 +0000</creation_ts>
          <short_desc>Namespace prefix bindings not established for IDC XPath Validation</short_desc>
          <delta_ts>2017-01-19 11:27:57 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Schema</product>
          <component>Structures: XSD Part 1</component>
          <version>1.0 only</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>REOPENED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Noah Mendelsohn">noah_mendelsohn</reporter>
          <assigned_to name="C. M. Sperberg-McQueen">cmsmcq</assigned_to>
          <cc>cmsmcq</cc>
    
    <cc>mostafa.shahdadi</cc>
    
    <cc>slave.loren</cc>
          
          <qa_contact name="XML Schema comments list">www-xml-schema-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>13912</commentid>
    <comment_count>0</comment_count>
    <who name="Noah Mendelsohn">noah_mendelsohn</who>
    <bug_when>2007-02-06 20:36:12 +0000</bug_when>
    <thetext>The validation rules for identity constraints contain constructs like:  

----
For an element information item to be locally ·valid· with respect to an identity-constraint all of the following must be true:

1 The {selector}, with the element information item as the context node, evaluates to a node-set (as defined in [XPath]). [Definition:]  Call this the target node set.
----

I don&apos;t think the namespace prefix bindings to be used in these evaluations are established. 

Suggested fix:
1) Add a property {namespace-bindings} to the identity constraint definition component, or if preferred in Schema 1.1, make {selector} a property record containing both the XPath and the bindings.  In either case, the {namespace-bindings} should be a set of {prefix,namespaceNameURI} pairs.
2) Add to the XML representation mapping rules so the binding property is set.
3) Modify the validation rules to ensure that the bindings are established as context when the XPaths are evaluated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14570</commentid>
    <comment_count>1</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2007-03-28 19:42:43 +0000</bug_when>
    <thetext>This issue was discussed by the Schema WG at our ftf meeting 28 March 2007.
It seems to be subsumed by the larger issue of specifying the static context
for XPath evaluations in general, so we&apos;re closing this bug as a duplicate
of the other one.

*** This bug has been marked as a duplicate of bug 4419 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24990</commentid>
    <comment_count>2</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2009-05-01 18:42:46 +0000</bug_when>
    <thetext>The resolution described in comment 1 applies (like bug 4419) to XSD 1.1 only.
The problem is I believe still unresolved in XSD 1.0, so I&apos;m setting the version of this
bug report to 1.0 only and reopening in.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>