[Mono-bugs] [Bug 77585][Wis] Changed - XML Schema importer generates non-validating XML for xsd:list type

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Feb 18 00:08:06 EST 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.


--- shadow/77585	2006-02-17 18:42:19.000000000 -0500
+++ shadow/77585.tmp.12769	2006-02-18 00:08:06.000000000 -0500
@@ -1,17 +1,17 @@
 Bug#: 77585
 Product: Mono: Class Libraries
 Version: 1.1
+OS: unknown
 OS Details: Fedora core 4
 Status: NEW   
+Severity: Unknown
 Priority: Wishlist
 Component: Sys.XML
-AssignedTo: atsushi at ximian.com                            
+AssignedTo: lluis at ximian.com                            
 ReportedBy: t7 at pobox.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
 Summary: XML Schema importer generates non-validating XML for xsd:list type
@@ -152,6 +152,32 @@
         /// <remarks/>
         public System.Single[] l;
+------- Additional Comments From atsushi at ximian.com  2006-02-18 00:08 -------
+My guess is WONTFIX since there seems no corresponding
+XmlBlahAttribute in System.Xml.Serialization.
+Interestingly MS.NET simply fails to support simpleType list and union
+such as:
+  <xs:element name="Elt">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element name="l">
+          <xs:simpleType>
+            <xs:list itemType="xs:float"/>
+          </xs:simpleType>
+        </xs:element>
+      </xs:sequence>
+    </xs:complexType>
+  </xs:element>
+It only generates a float field, not an array. (My guess is because MS
+incorrectly depends on BaseSchemaType/Datatyp simpleType restriction
+hence just works because its base type is the expected type.)
+We could alternatively totally kill support for simpleType
+restriction, but not sure if it is a smart solution.

More information about the mono-bugs mailing list