[Bug 4303] Namespace prefix bindings not established for IDC XPath Validation

http://www.w3.org/Bugs/Public/show_bug.cgi?id=4303

           Summary: Namespace prefix bindings not established for IDC XPath
                    Validation
           Product: XML Schema
           Version: 1.0/1.1 both
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Structures: XSD Part 1
        AssignedTo: cmsmcq@w3.org
        ReportedBy: noah_mendelsohn@us.ibm.com
         QAContact: www-xml-schema-comments@w3.org


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'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.

Received on Tuesday, 6 February 2007 20:36:25 UTC