[Mono-bugs] [Bug 82010][Blo] New - Mono incorrectly validates OASIS genericode XML file against Schema
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Jul 5 08:18:16 EDT 2007
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 abcoates at mileywatts.com.
http://bugzilla.ximian.com/show_bug.cgi?id=82010
--- shadow/82010 2007-07-05 08:18:16.000000000 -0400
+++ shadow/82010.tmp.28884 2007-07-05 08:18:16.000000000 -0400
@@ -0,0 +1,105 @@
+Bug#: 82010
+Product: Mono: Class Libraries
+Version: 1.2
+OS: other
+OS Details: openSUSE 10.2
+Status: NEW
+Resolution:
+Severity:
+Priority: Blocker
+Component: Sys.XML
+AssignedTo: atsushi at ximian.com
+ReportedBy: abcoates at mileywatts.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Summary: Mono incorrectly validates OASIS genericode XML file against Schema
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+
+Mono 1.1.18.1 and 1.2.4 incorrectly produce validation errors when
+validating an OASIS genericode file (XML code list) against the genericode
+Schema. There are no such errors when the same code is compiled and run
+under .NET 2.0 on Windows XP Pro.
+
+I will attach a ZIP archive with example code which reproduces the bug.
+
+Steps to reproduce the problem:
+1. Compile either of the two sample code files (GenericodeValidator1.cs is
+for Mono 1.1.x, GenericodeValidator2.cs is for Mono 1.2.x);
+2. Run the generated ".exe" under Mono with the path to
+"CountryIdentificationCode-2.0.gc" as the only argument. The two Schema
+files must be in the current working directory;
+3. Note that validation errors are logged under Mono (none are under .NET
+2.0, nor when the example file is validated against the Schema using other
+XML tools).
+
+Actual Results:
+
+prompt> mono bin/Debug/xsdtest1.exe CountryIdentificationCode-2.0.gc |
+head -15
+== Mono 1.1.x validation test ==
+Validating: CountryIdentificationCode-2.0.gc
+***Validation error
+ Severity:Error
+ Message:XmlSchema error: Invalid start element: :Row XML Line 36,
+Position 8.
+***Validation error
+ Severity:Error
+ Message:XmlSchema error: Element declaration for Row is missing.
+XML Line 36, Position 8.
+***Validation error
+ Severity:Error
+ Message:XmlSchema error: Invalid start element: :Value XML Line
+37, Position 11.
+***Validation error
+ Severity:Error
+ Message:XmlSchema error: Element declaration for Value is missing.
+XML Line 37, Position 11.
+***Validation error
+prompt> mono bin/Debug/xsdtest2.exe CountryIdentificationCode-2.0.gc |
+head -15
+== Mono 1.2.x validation test ==
+Validating: CountryIdentificationCode-2.0.gc
+***Validation error
+ Severity:Error
+ Message:XmlSchema error: Invalid start element: :Row XML Line 36,
+Position 8.
+***Validation error
+ Severity:Error
+ Message:XmlSchema error: Element declaration for Row is missing.
+XML Line 36, Position 8.
+***Validation error
+ Severity:Error
+ Message:XmlSchema error: Invalid start element: :Value XML Line
+37, Position 11.
+***Validation error
+ Severity:Error
+ Message:XmlSchema error: Current simple type cannot accept
+attributes other than schema instance namespace. XML Line 37, Position 17.
+***Validation error
+prompt>
+
+Expected Results:
+
+prompt> mono bin/Debug/xsdtest1.exe CountryIdentificationCode-2.0.gc |
+head -15
+== Mono 1.1.x validation test ==
+Validating: CountryIdentificationCode-2.0.gc
+Done.
+prompt> mono bin/Debug/xsdtest2.exe CountryIdentificationCode-2.0.gc |
+head -15
+== Mono 1.2.x validation test ==
+Validating: CountryIdentificationCode-2.0.gc
+Done.
+prompt>
+
+How often does this happen?
+
+Always.
+
+Additional Information:
+
+See "README.html" in attached ZIP archive.
More information about the mono-bugs
mailing list