get { return isCircularDefinition; }
}
+ internal override void SetParent (XmlSchemaObject parent)
+ {
+ base.SetParent (parent);
+ if (Particle != null)
+ Particle.SetParent (this);
+ }
+
// 1. name must be present
// 2. MinOccurs & MaxOccurs of the Particle must be absent
internal override int Compile(ValidationEventHandler h, XmlSchema schema)
if (CompilationId == schema.CompilationId)
return 0;
-#if NET_2_0
- if (Particle != null)
- Particle.Parent = this;
-#endif
-
if(Name == null)
error(h,"Required attribute name must be present");
else if(!XmlSchemaUtil.CheckNCName(this.name))
error(h,"attribute name must be NCName");
else
- qualifiedName = new XmlQualifiedName(Name,schema.TargetNamespace);
+ qualifiedName = new XmlQualifiedName(Name, AncestorSchema.TargetNamespace);
if(Particle == null)
{