Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtsushi Eno <atsushieno@gmail.com>2006-07-26 14:13:56 +0400
committerAtsushi Eno <atsushieno@gmail.com>2006-07-26 14:13:56 +0400
commit6331ad5c79d55fa22441b64e68fd411c66e64978 (patch)
tree1a94fae12f730f13e31532ba6be5f3982de800ed /mcs/class/System.XML/System.Xml.Schema/XmlSchemaComplexContentRestriction.cs
parentae91af9e6261e48ce6ab00e386ae1e112c64d48e (diff)
2006-07-26 Atsushi Enomoto <atsushi@ximian.com>
Refactoring compilation to make Compile() portable to XmlSchemaSet.Compile() and fix multi-schema bugs (not done yet) * XmlSchema.cs : Removed "root schema" concept from Compile(). Since nested inclusion does not result in an error, the role of schemaLocationStack is identical to handledUris, thus removed it. The handledUris does not have to be a field. Moved NamedIdentities and IDCollections to XmlSchemaSet. Renamed a Compile() which is called from XmlSchemaCollection and XmlSchemaSet as CompileSubset(). Renamed private Compile() as DoCompile(). public Compile() now internally creates a new XmlSchemaSet and compiles the set. * XmlSchemaCollection.cs : now it hooks its schemaSet's validation event handler and thus XmlSchemaSet does not need to check this collection's event handler by itself. XmlSchema.Compile() -> XmlSchema.CompileSubset(). * XmlSchemaSet.cs : Removed SchemaCollection which became unneccessary. Added NamedIdentities and IDCollection. XmlSchema.Compile() -> XmlSchema.CompileSubset(). * XmlSchemaAttributeGroupRef.cs, XmlSchemaXPath.cs XmlSchemaSimpleTypeList.cs, XmlSchemaComplexContentRestriction.cs, XmlSchemaGroup.cs, XmlSchemaComplexContentExtension.cs, XmlSchemaSequence.cs, XmlSchemaSimpleContentRestriction.cs, XmlSchemaSimpleContentExtension.cs, XmlSchemaAny.cs, XmlSchemaElement.cs, XmlSchemaNotation.cs, XmlSchemaAll.cs, XmlSchemaComplexType.cs, XmlSchemaAnnotation.cs, XmlSchemaAttributeGroup.cs, XmlSchemaSimpleTypeRestriction.cs, XmlSchemaSimpleContent.cs, XmlSchemaGroupRef.cs, XmlSchemaChoice.cs, XmlSchemaSimpleType.cs, XmlSchemaIdentityConstraint.cs, XmlSchemaSimpleTypeUnion.cs, XmlSchemaAnyAttribute.cs, XmlSchemaComplexContent.cs, XmlSchemaAttribute.cs, XmlSchemaObject.cs : removed XmlSchemaObject.IsCompiled(). Check compilation state by comparing compilation ID directly. * XmlReader.cs : For DTD validator, call to SetSchemas() makes no sense. * XmlValidatingReader.cs : now it internally holds old XmlSchemaCollection instead of new XmlSchemaSet, to make XmlSchemaSet.SchemaCollection unneccessary. Removed SetSchemas() since it is now extraneous because of the XmlReaderChange above. svn path=/trunk/mcs/; revision=62988
Diffstat (limited to 'mcs/class/System.XML/System.Xml.Schema/XmlSchemaComplexContentRestriction.cs')
-rw-r--r--mcs/class/System.XML/System.Xml.Schema/XmlSchemaComplexContentRestriction.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/System.XML/System.Xml.Schema/XmlSchemaComplexContentRestriction.cs b/mcs/class/System.XML/System.Xml.Schema/XmlSchemaComplexContentRestriction.cs
index d3bf347e686..033caa06b78 100644
--- a/mcs/class/System.XML/System.Xml.Schema/XmlSchemaComplexContentRestriction.cs
+++ b/mcs/class/System.XML/System.Xml.Schema/XmlSchemaComplexContentRestriction.cs
@@ -91,7 +91,7 @@ namespace System.Xml.Schema
internal override int Compile(ValidationEventHandler h, XmlSchema schema)
{
// If this is already compiled this time, simply skip.
- if (this.IsComplied (schema.CompilationId))
+ if (CompilationId == schema.CompilationId)
return 0;
#if NET_2_0