XmlDocument XmlDoc=new XmlDocument();
XmlDoc.Load(strFilePath);
XslTransform xslt = new XslTransform();
xslt.Load(strXslPath);
XsltArgumentList xslArg = new XsltArgumentList();
xslArg.AddParam('Key1', '',IXPath);
xslArg.AddParam('Path', '',strPath);
StringBuilder sb = new StringBuilder('');
StringWriter sw = new StringWriter(sb);
XmlTextWriter writer = new XmlTextWriter(sw);
xslt.Transform(XmlDoc,xslArg,writer,null);
writer.Close();
HXML.InnerHtml=sb.ToString();
这是xsl文件
xml文件