public ActionResult PackageList() { var doc = new XmlDocument(); doc.Load(path); var result = new XmlActionResult(); result.Document = doc; result.TransformSource = Server.MapPath("~/Content/PackageList.xsl"); return result; }
public ActionResult PackageInfo() { var doc = new XmlDocument(); doc.Load(path); var result = new XmlActionResult(); result.Document = doc; XsltArgumentList arglist = new XsltArgumentList(); result.TransformArgumentList = arglist; arglist.AddParam("qvalue2", "", Request.QueryString["name"]); result.TransformSource = Server.MapPath("~/Content/PackageInfo.xsl"); return result; }