[Mono-bugs] [Bug 53667][Nor] Changed - MaxOccursString in ContentTypeParticle of XmlSchemaComplexType is not correct

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 19 May 2004 03:24:20 -0400 (EDT)


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@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=53667

--- shadow/53667	2004-01-31 09:28:28.000000000 -0500
+++ shadow/53667.tmp.2015	2004-05-19 03:24:20.000000000 -0400
@@ -1,14 +1,14 @@
 Bug#: 53667
-Product: Mono/Class Libraries
+Product: Mono: Class Libraries
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: 
-Status: NEW   
-Resolution: 
-Severity: 
+Status: RESOLVED   
+Resolution: FIXED
+Severity: Unknown
 Priority: Normal
 Component: Sys.XML
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: tcabanski@oai.cc               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -34,6 +34,49 @@
 MinOccursString = 0
 MinOccurs = 0
 
 I believe the MaxOccursString should be unbounded.  I can work around 
 this problem by treating max occurs of this size to be unbounded in my 
 Mono version.
+
+------- Additional Comments From atsushi@ximian.com  2004-05-19 03:24 -------
+I recently commited xml schema stuff that affects somewhat to content
+type particle. Now with this example code below, I got no different
+result from MS.NET.
+
+using System;
+using System.Xml;
+using System.Xml.Schema;
+
+public class Test
+{
+        public static void Main (string [] args)
+        {
+                XmlTextReader xtr = new XmlTextReader ("JDF.xsd");
+                XmlSchema schema = XmlSchema.Read (xtr, null);
+                schema.Compile (null);
+
+                XmlSchemaElement el = schema.Elements [
+                        new XmlQualifiedName (
+                                "JMF",
+                                "http://www.CIP4.org/JDFSchema_1_1")]
+                        as XmlSchemaElement;
+                XmlSchemaComplexType ct = el.ElementType as
+XmlSchemaComplexType;
+                Console.WriteLine (ct.Name);
+                Console.WriteLine (ct.ContentTypeParticle.MaxOccurs);
+                Console.WriteLine
+(ct.ContentTypeParticle.MaxOccursString);
+        }
+}
+
+$ mono maxoccurs.exe
+JMFRootMessage
+79228162514264337593543950335
+unbounded
+
+$ ./maxoccurs.exe
+JMFRootMessage
+79228162514264337593543950335
+unbounded
+
+