Definition at line 2133 of file Compiler.cs.
2134 {
2135 if (
xa.IsProcessing)
2136 {
2138 }
2139 else
2140 {
2141 if (
xa.AttDef !=
null)
2142 {
2143 return;
2144 }
2147 try
2148 {
2149 if (!
xa.RefName.IsEmpty)
2150 {
2153 {
2155 }
2158 {
2160 }
2163 if (datatype != null)
2164 {
2166 {
2168 }
2170 {
2171 if (
xa.DefaultValue !=
null)
2172 {
2174 }
2175 if (
xa.FixedValue !=
null)
2176 {
2179 {
2181 }
2182 }
2183 }
2184 }
2186 }
2187 else
2188 {
2190 if (
xa.SchemaType !=
null)
2191 {
2193 xa.SetAttributeType(
xa.SchemaType);
2196 }
2197 else if (!
xa.SchemaTypeName.IsEmpty)
2198 {
2201 {
2203 }
2207 }
2208 else
2209 {
2212 xa.SetAttributeType(DatatypeImplementation.AnySimpleType);
2213 }
2215 {
2217 }
2219 }
2222 }
2223 catch (XmlSchemaException
ex)
2224 {
2225 if (
ex.SourceSchemaObject ==
null)
2226 {
2228 }
2231 }
2232 finally
2233 {
2235 }
2236 }
2237 }
static string Sch_UndeclaredSimpleType
static string Sch_FixedInRef
static string Sch_FixedDefaultInRef
static string Sch_RefInvalidAttribute
static string Sch_AttributeCircularRef
static string Sch_UndeclaredAttribute
void SendValidationEvent(string code, XmlSchemaObject source)
readonly XmlSchemaObjectTable _attributes
void CompileAttribute(XmlSchemaAttribute xa)
void CompileSimpleType(XmlSchemaSimpleType simpleType)
void SetDefaultFixed(XmlSchemaAttribute xa, SchemaAttDef decl)
readonly XmlSchemaObjectTable _notations
XmlSchemaSimpleType GetSimpleType(XmlQualifiedName name)
References System.Xml.Schema.Compiler._attributes, System.Xml.Schema.Compiler._notations, System.Xml.Schema.DatatypeImplementation.AnySimpleType, System.Xml.Schema.Compiler.CompileAttribute(), System.Xml.Schema.Compiler.CompileSimpleType(), System.Xml.Dictionary, System.Xml.Schema.SchemaAttDef.Empty, System.Xml.Schema.Compiler.GetSimpleType(), System.Xml.Schema.XmlSchemaDatatype.IsEqual(), System.Xml.Schema.XmlSchemaDatatype.ParseValue(), System.SR.Sch_AttributeCircularRef, System.SR.Sch_FixedDefaultInRef, System.SR.Sch_FixedInRef, System.SR.Sch_RefInvalidAttribute, System.SR.Sch_UndeclaredAttribute, System.SR.Sch_UndeclaredSimpleType, System.Xml.Schema.BaseProcessor.SendValidationEvent(), and System.Xml.Schema.Compiler.SetDefaultFixed().
Referenced by System.Xml.Schema.Compiler.Compile(), System.Xml.Schema.Compiler.CompileAttribute(), System.Xml.Schema.Compiler.CompileAttributeGroup(), and System.Xml.Schema.Compiler.CompileLocalAttributes().