[Bug 10125] Validation of the content of xs:annotation

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

Sandy Gao <sandygao@ca.ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sandygao@ca.ibm.com

--- Comment #5 from Sandy Gao <sandygao@ca.ibm.com> 2010-12-10 18:14:12 UTC ---
The WG decided to collect information on how existing processors behave in this
area. For Xerces2-J, if I process the following schema document:

<xs:schema xmlns:xs ="http://www.w3.org/2001/XMLSchema">
  <xs:annotation>
    <xs:appinfo>
      <xs:element bad="bad"/>
      <e>xyz</e>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="e" type="xs:int"/>
</xs:schema>

and turn on the "http://apache.org/xml/features/validate-annotations" feature,
I get an error complaining the value "xyz" of "e" not being an "xs:int". If I
remove the <e>xyz</e> element, then there is no error.

Conclusion: Xerces2-J is using the schema being constructed, and not the schema
for schemas, when validating annotations.

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

Received on Friday, 10 December 2010 18:14:15 UTC