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

◆ PreprocessLocalAttribute()

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

Definition at line 1034 of file Preprocessor.cs.

1035 {
1036 if (attribute.Name != null)
1037 {
1040 attribute.SetQualifiedName(new XmlQualifiedName(attribute.Name, (attribute.Form == XmlSchemaForm.Qualified || (attribute.Form == XmlSchemaForm.None && _attributeFormDefault == XmlSchemaForm.Qualified)) ? _targetNamespace : null));
1041 }
1042 else
1043 {
1045 if (attribute.RefName.IsEmpty)
1046 {
1048 }
1049 else
1050 {
1052 }
1053 if (!attribute.SchemaTypeName.IsEmpty || attribute.SchemaType != null || attribute.Form != 0)
1054 {
1056 }
1057 attribute.SetQualifiedName(attribute.RefName);
1058 }
1060 }
static string Sch_AttributeNameRef
Definition SR.cs:554
static string Sch_InvalidAttributeRef
Definition SR.cs:922
Definition SR.cs:7
void SendValidationEvent(string code, XmlSchemaObject source)
void PreprocessAnnotation(XmlSchemaObject schemaObject)
void PreprocessAttributeContent(XmlSchemaAttribute attribute)
void ValidateNameAttribute(XmlSchemaObject xso)
void ValidateIdAttribute(XmlSchemaObject xso)
void ValidateQNameAttribute(XmlSchemaObject xso, string attributeName, XmlQualifiedName value)

References System.Xml.Schema.Preprocessor._attributeFormDefault, System.Xml.Schema.Preprocessor._targetNamespace, System.Xml.Schema.Preprocessor.PreprocessAnnotation(), System.Xml.Schema.Preprocessor.PreprocessAttributeContent(), System.SR.Sch_AttributeNameRef, System.SR.Sch_InvalidAttributeRef, System.Xml.Schema.BaseProcessor.SendValidationEvent(), System.Xml.Schema.Preprocessor.ValidateIdAttribute(), System.Xml.Schema.Preprocessor.ValidateNameAttribute(), and System.Xml.Schema.Preprocessor.ValidateQNameAttribute().

Referenced by System.Xml.Schema.Preprocessor.PreprocessAttributes().