[Mono-bugs] [Bug 52098][Nor] New - XmlSchema can resolve a reference to other schema

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 12 Dec 2003 07:29:32 -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 lluis@ximian.com.

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

--- shadow/52098	2003-12-12 07:29:32.000000000 -0500
+++ shadow/52098.tmp.27777	2003-12-12 07:29:32.000000000 -0500
@@ -0,0 +1,57 @@
+Bug#: 52098
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System.XML
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: lluis@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: XmlSchema can resolve a reference to other schema
+
+Description of Problem:
+
+XmlSchema throws an exception when trying to resolve a reference to another
+schema.
+
+Steps to reproduce the problem:
+Run this test case:
+
+using System;
+using System.IO;
+using System.Xml.Schema;
+
+public class Test
+{
+	public static void Main ()
+	{
+		string s = "";
+		s = "	<schema targetNamespace='test'" +
+			"		xmlns='http://www.w3.org/2001/XMLSchema'" + 
+			"		xmlns:xsd='http://www.w3.org/2001/XMLSchema'>" + 
+			"	<import namespace='http://www.w3.org/2001/XMLSchema' " +
+			"		schemaLocation='http://www.w3.org/2001/XMLSchema.xsd'/>" +
+			"	</schema>";
+			
+		StringReader sr = new StringReader (s);
+		XmlSchema sc = XmlSchema.Read (sr, null);
+		sr.Close ();
+		sc.Compile (null);
+	 }
+}
+
+
+Actual Results:
+Unhandled Exception: System.UriFormatException: Invalid URI: The hostname
+could not be parsed
+
+Expected Results:
+
+Should work.