+2006-07-25 Atsushi Enomoto <atsushi@ximian.com>
+
+ * XmlSchema.cs : mutual schema import was failing because the
+ compiling schema's SourceUri was not enlisted for nest check.
+
2006-03-02 Atsushi Enomoto <atsushi@ximian.com>
* XmlSchema.cs : seems like there is XmlSchemaExternal.Schema property
#endif
compilationItems.Add (Items [i]);
}
- if (this == rootSchema)
+ if (this == rootSchema) {
handledUris = new Hashtable ();
+ // Add this schema itself.
+ if (SourceUri != null && SourceUri.Length > 0)
+ handledUris.Add (SourceUri, SourceUri);
+ }
// First, we run into inclusion schemas to collect
// compilation target items into compiledItems.
+2006-07-25 Atsushi Enomoto <atsushi@ximian.com>
+
+ * XmlSchemaTests.cs : added TestSimpleMutualImport().
+
2006-04-27 Gert Driesen <drieseng@users.sourceforge.net>
* XmlSchemaCollectionTests.cs: added test for bug #78220.
}
+ [Test]
+ public void TestSimpleMutualImport ()
+ {
+ XmlReader r = new XmlTextReader ("Test/XmlFiles/xsd/inter-inc-1.xsd");
+ try {
+ XmlSchema.Read (r, null).Compile (null);
+ } finally {
+ r.Close ();
+ }
+ }
+
[Test]
public void TestQualification ()
{
+2006-07-25 Atsushi Enomoto <atsushi@ximian.com>
+
+ * inter-inc-1.xsd, inter-inc-2.xsd :
+ new test files for TestSimpleMutualImport().
+
2006-03-02 Atsushi Enomoto <atsushi@ximian.com>
* 77687.xsd, 77687inc.xsd : test for bug #77687.
--- /dev/null
+<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema' targetNamespace='urn:foo'>
+ <xs:import namespace='urn:bar' schemaLocation='inter-inc-2.xsd' />
+ <xs:element name='foo' />
+</xs:schema>
--- /dev/null
+<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema' targetNamespace='urn:bar'>
+ <xs:import namespace='urn:foo' schemaLocation='inter-inc-1.xsd' />
+ <xs:element name='bar' />
+</xs:schema>