[Mono-bugs] [Bug 78220][Nor] New - XmlSchema compilation fails for extension with base type in aother namespace

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Apr 27 08:50:26 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 gert.driesen at pandora.be.

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

--- shadow/78220	2006-04-27 08:50:26.000000000 -0400
+++ shadow/78220.tmp.14071	2006-04-27 08:50:26.000000000 -0400
@@ -0,0 +1,103 @@
+Bug#: 78220
+Product: Mono: Class Libraries
+Version: 1.1
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.XML
+AssignedTo: atsushi at ximian.com                            
+ReportedBy: gert.driesen at pandora.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: XmlSchema compilation fails for extension with base type in aother namespace
+
+In Mono, XmlSchema compilation fails with the following exception if the 
+base type of an extension is in another namespace:
+
+System.Xml.Schema.XmlSchemaException : XmlSchema error: Referenced base 
+schema type NSStatus:StatusType was not found in the corresponding 
+schema. Related schema item SourceUri: , Line 7, Position 8.
+in [0x0002e] 
+(at /home/monohead/mono/mcs/class/System.XML/System.Xml.Schema/ValidationH
+andler.cs:51) System.Xml.Schema.ValidationHandler:RaiseValidationEvent 
+(System.Xml.Schema.ValidationEventHandler handle, System.Exception 
+innerException, System.String message, System.Xml.Schema.XmlSchemaObject 
+xsobj, System.Object sender, System.String sourceUri, XmlSeverityType 
+severity)
+in [0x00008] 
+(at /home/monohead/mono/mcs/class/System.XML/System.Xml.Schema/XmlSchemaOb
+ject.cs:131) System.Xml.Schema.XmlSchemaObject:error 
+(System.Xml.Schema.ValidationEventHandler handle, System.String message, 
+System.Exception innerException, System.Xml.Schema.XmlSchemaObject xsobj, 
+System.Object sender)
+in [0x00013] 
+(at /home/monohead/mono/mcs/class/System.XML/System.Xml.Schema/XmlSchemaOb
+ject.cs:105) System.Xml.Schema.XmlSchemaObject:error 
+(System.Xml.Schema.ValidationEventHandler handle, System.String message)
+in [0x00104] 
+(at /home/monohead/mono/mcs/class/System.XML/System.Xml.Schema/XmlSchemaSi
+mpleContentExtension.cs:170) 
+System.Xml.Schema.XmlSchemaSimpleContentExtension:Validate 
+(System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema 
+schema)
+in [0x00027] 
+(at /home/monohead/mono/mcs/class/System.XML/System.Xml.Schema/XmlSchemaSi
+mpleContent.cs:98) System.Xml.Schema.XmlSchemaSimpleContent:Validate 
+(System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema 
+schema)
+in [0x00016] 
+(at /home/monohead/mono/mcs/class/System.XML/System.Xml.Schema/XmlSchemaCo
+mplexType.cs:661) 
+System.Xml.Schema.XmlSchemaComplexType:ValidateContentModel 
+(System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema 
+schema)
+in [0x0003b] 
+(at /home/monohead/mono/mcs/class/System.XML/System.Xml.Schema/XmlSchemaCo
+mplexType.cs:590) System.Xml.Schema.XmlSchemaComplexType:Validate 
+(System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema 
+schema)
+in [0x00147] 
+(at /home/monohead/mono/mcs/class/System.XML/System.Xml.Schema/XmlSchema.c
+s:617) System.Xml.Schema.XmlSchema:Validate 
+(System.Xml.Schema.ValidationEventHandler handler)
+in [0x00a49] 
+(at /home/monohead/mono/mcs/class/System.XML/System.Xml.Schema/XmlSchema.c
+s:581) System.Xml.Schema.XmlSchema:Compile 
+(System.Xml.Schema.ValidationEventHandler handler, 
+System.Collections.Stack schemaLocationStack, System.Xml.Schema.XmlSchema 
+rootSchema, System.Xml.Schema.XmlSchemaSet col, System.Xml.XmlResolver 
+resolver)
+in [0x0000a] 
+(at /home/monohead/mono/mcs/class/System.XML/System.Xml.Schema/XmlSchema.c
+s:293) System.Xml.Schema.XmlSchema:Compile 
+(System.Xml.Schema.ValidationEventHandler handler, 
+System.Xml.Schema.XmlSchemaSet col, System.Xml.XmlResolver resolver)
+in [0x0002b] 
+(at /home/monohead/mono/mcs/class/System.XML/System.Xml.Schema/XmlSchemaCo
+llection.cs:143) System.Xml.Schema.XmlSchemaCollection:Add 
+(System.Xml.Schema.XmlSchema schema, System.Xml.XmlResolver resolver)
+in [0x0000d] 
+(at /home/monohead/mono/mcs/class/System.XML/System.Xml.Schema/XmlSchemaCo
+llection.cs:132) System.Xml.Schema.XmlSchemaCollection:Add 
+(System.Xml.Schema.XmlSchema schema)
+in [0x00069] 
+(at /home/monohead/mono/mcs/class/System.XML/Test/System.Xml.Schema/XmlSch
+emaCollectionTests.cs:118) 
+MonoTests.System.Xml.XmlSchemaCollectionTests:TestCompile ()
+in <0x00000> <unknown method>
+in (wrapper managed-to-native) 
+System.Reflection.MonoMethod:InternalInvoke (object,object[])
+in [0x00044] 
+(at /home/monohead/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:1
+31) System.Reflection.MonoMethod:Invoke (System.Object obj, BindingFlags 
+invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, 
+System.Globalization.CultureInfo culture)
+
+I've added test case for this issue to 
+Test/System.Xml.Schema.XmlSchemaCollectionTests (and marked it 
+NotWorking).


More information about the mono-bugs mailing list