System.Xml.Xsl.XsltOld.XsltOutput.ParseOutputMethod C# (CSharp) Method

ParseOutputMethod() private static method

private static ParseOutputMethod ( string value, Compiler compiler ) : OutputMethod
value string
compiler Compiler
return OutputMethod
        private static OutputMethod ParseOutputMethod(string value, Compiler compiler) {
            XmlQualifiedName method = compiler.CreateXPathQName(value);
            if(method.Namespace.Length != 0) {
                return OutputMethod.Other;
            }
            switch(method.Name) {
            case Keywords.s_Xml  :
                return OutputMethod.Xml ;
            case Keywords.s_Html :
                return OutputMethod.Html;
            case Keywords.s_Text :
                return OutputMethod.Text;
            default :
                if (compiler.ForwardCompatibility) {
                    return OutputMethod.Unknown;
                }
                throw XsltException.Create(Res.Xslt_InvalidAttrValue, Keywords.s_Method, value);
            }
        }
    }