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

◆ ParseOutputMethod()

static OutputMethod System.Xml.Xsl.XsltOld.XsltOutput.ParseOutputMethod ( string value,
Compiler compiler )
inlinestaticprivate

Definition at line 205 of file XsltOutput.cs.

206 {
207 XmlQualifiedName xmlQualifiedName = compiler.CreateXPathQName(value);
208 if (xmlQualifiedName.Namespace.Length != 0)
209 {
210 return OutputMethod.Other;
211 }
212 switch (xmlQualifiedName.Name)
213 {
214 case "xml":
215 return OutputMethod.Xml;
216 case "html":
217 return OutputMethod.Html;
218 case "text":
219 return OutputMethod.Text;
220 default:
221 if (compiler.ForwardCompatibility)
222 {
223 return OutputMethod.Unknown;
224 }
225 throw XsltException.Create(System.SR.Xslt_InvalidAttrValue, "method", value);
226 }
227 }
static string Xslt_InvalidAttrValue
Definition SR.cs:1884
Definition SR.cs:7

References System.Xml.Xsl.XsltException.Create(), System.Xml.Dictionary, System.value, and System.SR.Xslt_InvalidAttrValue.

Referenced by System.Xml.Xsl.XsltOld.XsltOutput.CompileAttribute().