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

◆ ParseOutputMethod()

XmlQualifiedName System.Xml.Xsl.Xslt.XsltLoader.ParseOutputMethod ( string attValue,
out XmlOutputMethod method )
inlineprivate

Definition at line 2121 of file XsltLoader.cs.

2122 {
2124 method = XmlOutputMethod.AutoDetect;
2126 {
2127 return null;
2128 }
2129 if (prefix.Length == 0)
2130 {
2131 switch (localName)
2132 {
2133 case "xml":
2134 method = XmlOutputMethod.Xml;
2135 break;
2136 case "html":
2137 method = XmlOutputMethod.Html;
2138 break;
2139 case "text":
2140 method = XmlOutputMethod.Text;
2141 break;
2142 default:
2144 return null;
2145 }
2146 }
2147 else if (!_input.ForwardCompatibility)
2148 {
2150 }
2151 return new XmlQualifiedName(localName, namespaceName);
2152 }
static string Xslt_InvalidMethod
Definition SR.cs:1970
static string Xslt_InvalidAttrValue
Definition SR.cs:1884
Definition SR.cs:7
bool IsPhantomNamespace(string namespaceName)
Definition Compiler.cs:291
void ReportError(string res, params string[] args)
void ReportWarning(string res, params string[] args)
bool ResolveQName(bool ignoreDefaultNs, string qname, out string localName, out string namespaceName, out string prefix)

References System.Xml.Xsl.Xslt.XsltLoader._compiler, System.Xml.Xsl.Xslt.XsltLoader._input, System.Xml.Dictionary, System.Xml.Xsl.Xslt.XsltInput.ForwardCompatibility, System.Xml.Xsl.Xslt.Compiler.IsPhantomNamespace(), System.prefix, System.Xml.Xsl.Xslt.XsltLoader.ReportError(), System.Xml.Xsl.Xslt.XsltLoader.ReportWarning(), System.Xml.Xsl.Xslt.XsltLoader.ResolveQName(), System.SR.Xslt_InvalidAttrValue, and System.SR.Xslt_InvalidMethod.

Referenced by System.Xml.Xsl.Xslt.XsltLoader.LoadOutput().