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

◆ ParseValidationAttribute()

void System.Xml.Xsl.Xslt.XsltLoader.ParseValidationAttribute ( int attNum,
bool defVal )
inlineprivate

Definition at line 2241 of file XsltLoader.cs.

2242 {
2243 string text = (defVal ? _atoms.DefaultValidation : "validation");
2245 {
2246 return;
2247 }
2248 string value = _input.Value;
2249 switch (value)
2250 {
2251 case "strict":
2252 if (defVal)
2253 {
2254 goto default;
2255 }
2256 goto case "preserve";
2257 default:
2258 if (!(value == "lax") || defVal)
2259 {
2260 break;
2261 }
2262 goto case "preserve";
2263 case "preserve":
2265 return;
2266 }
2268 {
2270 }
2271 }
static string Xslt_InvalidAttrValue
Definition SR.cs:1884
static string Xslt_SchemaAttributeValue
Definition SR.cs:1998
Definition SR.cs:7
bool MoveToXsltAttribute(int attNum, string attName)
Definition XsltInput.cs:681
void ReportError(string res, params string[] args)

References System.Xml.Xsl.Xslt.XsltLoader._input, System.Xml.Dictionary, System.Xml.Xsl.Xslt.XsltInput.ForwardCompatibility, System.Xml.Xsl.Xslt.XsltInput.MoveToXsltAttribute(), System.Xml.Xsl.Xslt.XsltLoader.ReportError(), System.text, System.value, System.Xml.Xsl.Xslt.XsltInput.Value, System.SR.Xslt_InvalidAttrValue, and System.SR.Xslt_SchemaAttributeValue.

Referenced by System.Xml.Xsl.Xslt.XsltLoader.LoadRealStylesheet(), System.Xml.Xsl.Xslt.XsltLoader.XslAttribute(), System.Xml.Xsl.Xslt.XsltLoader.XslCopy(), System.Xml.Xsl.Xslt.XsltLoader.XslCopyOf(), and System.Xml.Xsl.Xslt.XsltLoader.XslElement().