Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ PreprocessAttributeContent()

void System.Xml.Schema.Preprocessor.PreprocessAttributeContent ( XmlSchemaAttribute attribute)
inlineprivate

Definition at line 1062 of file Preprocessor.cs.

1063 {
1066 {
1068 }
1069 if (!attribute.RefName.IsEmpty)
1070 {
1072 }
1073 if (attribute.DefaultValue != null && attribute.FixedValue != null)
1074 {
1076 }
1077 if (attribute.DefaultValue != null && attribute.Use != XmlSchemaUse.Optional && attribute.Use != 0)
1078 {
1080 }
1081 if (attribute.Name == _xmlns)
1082 {
1084 }
1085 if (attribute.SchemaType != null)
1086 {
1087 SetParent(attribute.SchemaType, attribute);
1088 if (!attribute.SchemaTypeName.IsEmpty)
1089 {
1091 }
1093 }
1094 if (!attribute.SchemaTypeName.IsEmpty)
1095 {
1096 ValidateQNameAttribute(attribute, "type", attribute.SchemaTypeName);
1097 }
1098 }
static string Sch_DefaultFixedAttributes
Definition SR.cs:536
static string Sch_ForbiddenAttribute
Definition SR.cs:544
static string Sch_TargetNamespaceXsi
Definition SR.cs:746
static string Sch_XmlNsAttribute
Definition SR.cs:592
static string Sch_TypeMutualExclusive
Definition SR.cs:550
static string Sch_OptionalDefaultAttribute
Definition SR.cs:924
Definition SR.cs:7
void SendValidationEvent(string code, XmlSchemaObject source)
void PreprocessAnnotation(XmlSchemaObject schemaObject)
void SetParent(XmlSchemaObject child, XmlSchemaObject parent)
void PreprocessSimpleType(XmlSchemaSimpleType simpleType, bool local)
void ValidateQNameAttribute(XmlSchemaObject xso, string attributeName, XmlQualifiedName value)

References System.Xml.Schema.Preprocessor._currentSchema, System.Xml.Schema.Preprocessor._nsXsi, System.Xml.Schema.Preprocessor._xmlns, System.Xml.Ref.Equal(), System.Xml.Schema.Preprocessor.PreprocessAnnotation(), System.Xml.Schema.Preprocessor.PreprocessSimpleType(), System.SR.Sch_DefaultFixedAttributes, System.SR.Sch_ForbiddenAttribute, System.SR.Sch_OptionalDefaultAttribute, System.SR.Sch_TargetNamespaceXsi, System.SR.Sch_TypeMutualExclusive, System.SR.Sch_XmlNsAttribute, System.Xml.Schema.BaseProcessor.SendValidationEvent(), System.Xml.Schema.Preprocessor.SetParent(), System.Xml.Schema.XmlSchema.TargetNamespace, and System.Xml.Schema.Preprocessor.ValidateQNameAttribute().

Referenced by System.Xml.Schema.Preprocessor.PreprocessAttribute(), and System.Xml.Schema.Preprocessor.PreprocessLocalAttribute().