我正在使用xsltc.exe
从A.dll
创建A.xslt
。然后,我尝试使用MSXML6
像这样加载A.dll
:
DOMDocument60 oDoc = new DOMDocument60();
var A = Assembly.LoadFrom("C:\\A.dll").GetTypes();
try {oDoc.load(A[0]); }catch {Console.WriteLine(false); }//1st try---False
Console.WriteLine(oDoc.load("C:\\A.dll")); //2nd try---False
Console.WriteLine(oDoc.load("C:\\A.xslt")); //3rd try---True, but I want to load compiled stylesheet, not script stylesheet
所以问题是我无法使用MSXML6
来加载已编译的样式表。我该如何解决?