[Mono-bugs] [Bug 79650][Nor] Changed - xml schema xs:enumeration doesn't work correct with mono
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Oct 25 20:46:37 EDT 2006
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 atsushi at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=79650
--- shadow/79650 2006-10-25 19:26:07.000000000 -0400
+++ shadow/79650.tmp.10591 2006-10-25 20:46:37.000000000 -0400
@@ -53,6 +53,40 @@
It seems that mono dosn't validate xml schema enumerations well.
------- Additional Comments From reypolskyy at gmail.com 2006-10-11 17:04 -------
Created an attachment (id=17838)
zip
+
+------- Additional Comments From atsushi at ximian.com 2006-10-25 20:46 -------
+simplified:
+
+using System;
+using System.IO;
+using System.Xml;
+using System.Xml.Schema;
+
+class MainTestCase
+{
+ static void Main(string[] args)
+ {
+ XmlSchema schema = XmlSchema.Read (new XmlTextReader
+("schema.xsd"), null);
+ XmlValidatingReader validator = new
+XmlValidatingReader(_xml_2, XmlNodeType.Document, null);
+ validator.ValidationType = ValidationType.Schema;
+ validator.Schemas.Add(schema);
+ while (validator.Read());
+ validator.Close();
+ }
+
+ static string _xml_2 = @"<test mode=""NOT A ENUMERATION
+VALUE""></test>";
+}
+
+Looks like XsdValidatingReader skips String Valid (spec section
+3.14.4) in Attribute Locally Valid (3.2.4). I have a fix which I
+believe is correct but right now I have broken svn tree on my box.
+
+XmlSchemaValidator should also be fixed but I don't think Microsoft
+did a good job with related to this API design, namely XmlValueGetter
+which rather breaks datatype testing in xs:union. Hence lower priority.
More information about the mono-bugs
mailing list