DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6824>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6824

Validation saginst schema inconsistent wrt namespaces

           Summary: Validation saginst schema inconsistent wrt namespaces
           Product: Xerces2-J
           Version: 2.0.0
          Platform: All
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: XML Schema Structures
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


When validating a document against a schema, Xerces behaves differently
depending on the use of targtNamespace.

For instance, if you attach a targetNamespace to the sample persnal-schema,
and change the namespace in the instance document, Xerces now reports
errors (Xerces 1.4.3 does NOT show this behaviour).

<!-- Xerces schema example with namespace -->
<xs:schema 
    targetNamespace="http://test.xyz";
    xmlns:xs='http://www.w3.org/2001/XMLSchema'
>

<!-- Xerces sample instance document with namespace -->
<?xml version="1.0" encoding="UTF-8"?>
<personnel 
    xmlns="http://test.xyz";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xsi:schemaLocation='http://test.xyz AS_NS.xsd'>

These are the errors reported:
[Error] :5:52: src-resolve.4: Components from namespace 'null' are not 
referenceable from schema document 'file:///C:/develop/sandvik/sandvik-
ui/resources/AS_NS.xsd'.
[Error] :5:52: src-resolve.4: Components from namespace 'null' are not 
referenceable from schema document 'file:///C:/develop/sandvik/sandvik-
ui/resources/AS_NS.xsd'.
[Error] :5:52: src-resolve.4: Components from namespace 'null' are not 
referenceable from schema document 'file:///C:/develop/sandvik/sandvik-
ui/resources/AS_NS.xsd'.
[Error] :5:52: src-resolve.4: Components from namespace 'null' are not 
referenceable from schema document 'file:///C:/develop/sandvik/sandvik-
ui/resources/AS_NS.xsd'.
[Error] :5:52: src-resolve.4: Components from namespace 'null' are not 
referenceable from schema document 'file:///C:/develop/sandvik/sandvik-
ui/resources/AS_NS.xsd'.
[Error] :5:52: src-resolve.4: Components from namespace 'null' are not 
referenceable from schema document 'file:///C:/develop/sandvik/sandvik-
ui/resources/AS_NS.xsd'.
[Error] :5:52: src-resolve.4: Components from namespace 'null' are not 
referenceable from schema document 'file:///C:/develop/sandvik/sandvik-
ui/resources/AS_NS.xsd'.
[Error] :5:52: src-resolve.4: Components from namespace 'null' are not 
referenceable from schema document 'file:///C:/develop/sandvik/sandvik-
ui/resources/AS_NS.xsd'.
[Error] :7:26: cvc-complex-type.2.4.a: Invalid content starting with 
element 'person'. The content must match 'EMPTY{1-UNBOUNDED}'.
[Error] :8:11: cvc-complex-type.2.4.a: Invalid content starting with 
element 'name'. The content must match '(((EMPTY,EMPTY{0-UNBOUNDED}),EMPTY{0-
UNBOUNDED}),EMPTY{0-1})'.
[Error] :8:19: cvc-complex-type.2.4.a: Invalid content starting with 
element 'family'. The content must match 'all(EMPTY,EMPTY)'.
[Error] :10:86: cvc-complex-type.2.4.a: Invalid content starting with 
element 'link'. The content must match '(((EMPTY,EMPTY{0-UNBOUNDED}),EMPTY{0-
UNBOUNDED}),EMPTY{0-1})'.
[Error] :14:11: cvc-complex-type.2.4.a: Invalid content starting with 
element 'name'. The content must match '(((EMPTY,EMPTY{0-UNBOUNDED}),EMPTY{0-
UNBOUNDED}),EMPTY{0-1})'.
[Error] :14:19: cvc-complex-type.2.4.a: Invalid content starting with 
element 'family'. The content must match 'all(EMPTY,EMPTY)'.
[Error] :16:31: cvc-complex-type.2.4.a: Invalid content starting with 
element 'link'. The content must match '(((EMPTY,EMPTY{0-UNBOUNDED}),EMPTY{0-
UNBOUNDED}),EMPTY{0-1})'.
[Error] :19:27: cvc-complex-type.2.4.a: Invalid content starting with 
element 'person'. The content must match 'EMPTY{1-UNBOUNDED}'.
[Error] :20:11: cvc-complex-type.2.4.a: Invalid content starting with 
element 'name'. The content must match '(((EMPTY,EMPTY{0-UNBOUNDED}),EMPTY{0-
UNBOUNDED}),EMPTY{0-1})'.
[Error] :20:19: cvc-complex-type.2.4.a: Invalid content starting with 
element 'family'. The content must match 'all(EMPTY,EMPTY)'.
[Error] :22:31: cvc-complex-type.2.4.a: Invalid content starting with 
element 'link'. The content must match '(((EMPTY,EMPTY{0-UNBOUNDED}),EMPTY{0-
UNBOUNDED}),EMPTY{0-1})'.
[Error] :26:11: cvc-complex-type.2.4.a: Invalid content starting with 
element 'name'. The content must match '(((EMPTY,EMPTY{0-UNBOUNDED}),EMPTY{0-
UNBOUNDED}),EMPTY{0-1})'.
[Error] :26:19: cvc-complex-type.2.4.a: Invalid content starting with 
element 'family'. The content must match 'all(EMPTY,EMPTY)'.
[Error] :28:31: cvc-complex-type.2.4.a: Invalid content starting with 
element 'link'. The content must match '(((EMPTY,EMPTY{0-UNBOUNDED}),EMPTY{0-
UNBOUNDED}),EMPTY{0-1})'.
[Error] :31:28: cvc-complex-type.2.4.a: Invalid content starting with 
element 'person'. The content must match 'EMPTY{1-UNBOUNDED}'.
[Error] :32:11: cvc-complex-type.2.4.a: Invalid content starting with 
element 'name'. The content must match '(((EMPTY,EMPTY{0-UNBOUNDED}),EMPTY{0-
UNBOUNDED}),EMPTY{0-1})'.
[Error] :32:19: cvc-complex-type.2.4.a: Invalid content starting with 
element 'family'. The content must match 'all(EMPTY,EMPTY)'.
[Error] :34:31: cvc-complex-type.2.4.a: Invalid content starting with 
element 'link'. The content must match '(((EMPTY,EMPTY{0-UNBOUNDED}),EMPTY{0-
UNBOUNDED}),EMPTY{0-1})'.
[Error] :38:11: cvc-complex-type.2.4.a: Invalid content starting with 
element 'name'. The content must match '(((EMPTY,EMPTY{0-UNBOUNDED}),EMPTY{0-
UNBOUNDED}),EMPTY{0-1})'.
[Error] :38:19: cvc-complex-type.2.4.a: Invalid content starting with 
element 'family'. The content must match 'all(EMPTY,EMPTY)'.
[Error] :40:31: cvc-complex-type.2.4.a: Invalid content starting with 
element 'link'. The content must match '(((EMPTY,EMPTY{0-UNBOUNDED}),EMPTY{0-
UNBOUNDED}),EMPTY{0-1})'.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to