There is a set of XSL controls available in the .net library that inherit from standard Xml controls.
The article is available here:
http://support.microsoft.com/kb/307322
using System;
using System.Xml;
using System.Xml.Xsl;
namespace XSLTransformation
{
public class Class1
{
static void Main(string[] args)
{
XslTransform myXslTransform = new XslTransform();
myXslTransform.Load("reference.xsl");
myXslTransform.Transform("inputfile.xml", "outputfile.xml");
}
}
}
Pooli source
share