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

Validator doesn't enforce xsd:key 

           Summary: Validator doesn't enforce xsd:key
           Product: Xerces-C++
           Version: 2.1.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Validating Parser (Schema) (Xerces 1.5 or up only)
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


If I use Xerces to validate the attached XML+XSD files, I get no errors:

c:\>SAXCount -n -s -f KeyTest.xml 
KeyTest.xml: 100 ms (13 elems, 2 attrs, 81 spaces, 19 chars)

while XSV 1.6 reports:

c:\>xsv KeyTest.xml
<?xml version='1.0'?>
<xsv xmlns='http://www.w3.org/2000/05/xsv' docElt='{None}Maxx' 
instanceAssessed='true' instanceErrors='2' rootType='[Anonymous]' 
schemaErrors='0' schemaLocs='None -> KeyTest.xsd' 
target='file:/C:/testcase/xsd_key/KeyTest.xml' validation='strict' 
version='XSV 1.6 of 2002/09/23 21:47:52'>
  <schemaDocAttempt URI='file:/C:/testcase/xsd_key/KeyTest.xsd' 
outcome='success' source='schemaLoc'/>
  <invalid char='5' code='cvc-identity-constraint.2.2.3' line='13' 
resource='file:/C:/testcase/xsd_key/KeyTest.xml'>duplicate key Sub1 for {None}
KProzessName, first appearance was in unnamed entity at line 10 char 5 of 
file:/C:/testcase/xsd_key/KeyTest.xml</invalid>
  <invalid char='5' code='cvc-identity-constraint.2.2.3' line='16' 
resource='file:/C:/testcase/xsd_key/KeyTest.xml'>duplicate key Main for {None}
KProzessName, first appearance was in unnamed entity at line 4 char 3 of 
file:/C:/testcase/xsd_key/KeyTest.xml</invalid>
</xsv>

Alberto

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

Reply via email to