static Processors() { Type sysProcType = Type.GetType("myxsl.xml.xsl.SystemXsltProcessor, myxsl.xml.xsl", throwOnError: false, ignoreCase: false); Type saxonProcType = Type.GetType("myxsl.saxon.SaxonProcessor, myxsl.saxon", throwOnError: false, ignoreCase: false); if (sysProcType != null) { RegisterProcessor("system", sysProcType); } if (saxonProcType != null) { RegisterProcessor("saxon", saxonProcType); } _All = new Processors<object>(); _Xslt = new Processors<IXsltProcessor>(); _XQuery = new Processors<IXQueryProcessor>(); if (sysProcType != null) { _Xslt.Default = "system"; } if (saxonProcType != null) { _Xslt.Default = "saxon"; _XQuery.Default = "saxon"; } }