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

◆ PreprocessAttributeContent()

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

Definition at line 811 of file SchemaCollectionPreprocessor.cs.

812 {
814 if (_schema.TargetNamespace == "http://www.w3.org/2001/XMLSchema-instance")
815 {
817 }
818 if (!attribute.RefName.IsEmpty)
819 {
821 }
822 if (attribute.DefaultValue != null && attribute.FixedValue != null)
823 {
825 }
826 if (attribute.DefaultValue != null && attribute.Use != XmlSchemaUse.Optional && attribute.Use != 0)
827 {
829 }
830 if (attribute.Name == _xmlns)
831 {
833 }
834 if (attribute.SchemaType != null)
835 {
836 SetParent(attribute.SchemaType, attribute);
837 if (!attribute.SchemaTypeName.IsEmpty)
838 {
840 }
842 }
843 if (!attribute.SchemaTypeName.IsEmpty)
844 {
845 ValidateQNameAttribute(attribute, "type", attribute.SchemaTypeName);
846 }
847 }
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 SetParent(XmlSchemaObject child, XmlSchemaObject parent)
void PreprocessSimpleType(XmlSchemaSimpleType simpleType, bool local)
void ValidateQNameAttribute(XmlSchemaObject xso, string attributeName, XmlQualifiedName value)

References System.Xml.Schema.SchemaCollectionPreprocessor._schema, System.Xml.Schema.SchemaCollectionPreprocessor._xmlns, System.Xml.Schema.SchemaCollectionPreprocessor.PreprocessAnnotation(), System.Xml.Schema.SchemaCollectionPreprocessor.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.SchemaCollectionPreprocessor.SetParent(), System.Xml.Schema.XmlSchema.TargetNamespace, and System.Xml.Schema.SchemaCollectionPreprocessor.ValidateQNameAttribute().

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