使用MSXML6加载已编译的样式表

时间:2019-02-11 09:49:04

标签: c# msxml6 xslcompiledtransform

我正在使用xsltc.exeA.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来加载已编译的样式表。我该如何解决?

0 个答案:

没有答案