[Mono-bugs] [Bug 53668][Nor] Changed - XmlSchemaAny for any attribute in schema has null namespace

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 4 Feb 2004 00:58:42 -0500 (EST)


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=53668

--- shadow/53668	2004-01-31 09:32:03.000000000 -0500
+++ shadow/53668.tmp.8511	2004-02-04 00:58:42.000000000 -0500
@@ -1,14 +1,14 @@
 Bug#: 53668
 Product: Mono/Class Libraries
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: 
-Status: NEW   
+Status: NEEDINFO   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: Sys.XML
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: tcabanski@oai.cc               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -22,6 +22,47 @@
 type includes the following:
 
 <xs:anyAttribute namespace="##other" processContent="strict"/>
 
 This gets represented in Mono as an XmlSchemaAny with Namespace = NULL.  
 Microsoft has Namespace = "##other" as I would expect.
+
+------- Additional Comments From atsushi@ximian.com  2004-02-04 00:58 -------
+It looks curious ... I think I fixed XmlSchemaAny but this report 
+seems about XmlSchemaAnyAttribute, so it was not related.
+
+As for this class, there seems no problem. Can you please provide the 
+reproducable code?
+
+Here is the code I tested:
+
+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);
+
+		XmlSchemaComplexType ct = schema.SchemaTypes [new 
+XmlQualifiedName 
+("JMFRootMessage", "http://www.CIP4.org/JDFSchema_1_1")] as 
+XmlSchemaComplexType;
+		Console.WriteLine (ct.Name);
+		Console.WriteLine (ct.AttributeWildcard);
+		if (ct.AttributeWildcard != null)
+			Console.WriteLine 
+(ct.AttributeWildcard.Namespace);
+	}
+}
+
+I got this expected result:
+
+$ mono anyattr.exe
+JMFRootMessage
+System.Xml.Schema.XmlSchemaAnyAttribute
+##other
+