also you can use
in c#(use XslTransform类)using System.Xml;
using System.Xml.Xsl;
using System.Xml.Xpath;string xmlPath=Server.MapPath("1.xml");
string xslPath=Server.MapPath("test.xsl");XPathDocument doc=new XPathDocument(xmlPath);
XslTransform transform=new XslTransform();
transform.Load(xslPath);XmlTextWrite writer=new XmlTextWrite(Response.OutPut);
writer.Formatting=Formatting.Indented;
writer.Indentation=4;
transform.Transform(doc,null,writer);