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

◆ PreprocessLocalAttribute()

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

Definition at line 783 of file SchemaCollectionPreprocessor.cs.

784 {
785 if (attribute.Name != null)
786 {
789 attribute.SetQualifiedName(new XmlQualifiedName(attribute.Name, (attribute.Form == XmlSchemaForm.Qualified || (attribute.Form == XmlSchemaForm.None && _attributeFormDefault == XmlSchemaForm.Qualified)) ? _targetNamespace : null));
790 }
791 else
792 {
794 if (attribute.RefName.IsEmpty)
795 {
797 }
798 else
799 {
801 }
802 if (!attribute.SchemaTypeName.IsEmpty || attribute.SchemaType != null || attribute.Form != 0)
803 {
805 }
806 attribute.SetQualifiedName(attribute.RefName);
807 }
809 }
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 ValidateQNameAttribute(XmlSchemaObject xso, string attributeName, XmlQualifiedName value)
void PreprocessAttributeContent(XmlSchemaAttribute attribute)

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

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