Please do not reply to this email- if you want to comment on the bug, go to the URL shown below and enter your comments there.
Changed by [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=78985 --- shadow/78985 2006-07-31 22:07:35.000000000 -0400 +++ shadow/78985.tmp.1936 2006-07-31 22:07:35.000000000 -0400 @@ -0,0 +1,60 @@ +Bug#: 78985 +Product: Mono: Class Libraries +Version: unspecified +OS: +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Major +Component: Sys.XML +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: XML Schema key constraints + +The mono-xmltool Schema validator fails to validate an XML Document. + +The XML document is as follows: +<root xmlns=.....> + <scoreGroup key="test"> + <score key="example">An example</score> + </scoreGroup> + <scoreGroup key="test2"> + <score key="example2">An example 2</score> + </scoreGroup> +</root> + +The key attribute for the scoreGroup element must be unique. +The key attribute for the score element must be unique within the score group. + +mono-xmltool --validate-xsd schema.xsd xmlfile.xml outputs +XmlSchema error: The key value was already found. At line 3, position 14. +XML UR +I: file:///C:/tmp/xmltest/xml/XMLFile2.xml . Line 4, Position 10. Related +schema + item SourceUri: file:///C:/tmp/xmltest/xml/XMLSchema2.xsd, Line 29, +Position 4. + +If I change one of the attributes from key to something else, validation +passes. Tests for uniqueness confirm that the validator is in fact catching + non unique keys. + +Visual Studio 2003 validates both versions of the xml and schema documents +with no problems. + +How often does this happen? +Everytime on MacOSX and Windows. + +Additional Information: +I have the schema and xml files if required. + +Mono JIT compiler version 1.1.16.1, (C) 2002-2006 Novell, Inc and +Contributors. www.mono-project.com + TLS: normal + GC: Included Boehm (with typed GC) + SIGSEGV: normal + Disabled: none _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
