using System;
using System.Xml;
using System.Xml.Xsl;
using System.Xml.XPath;
using System.IO;
public class XSLDemo
{
[STAThread]
static void Main(string[] args)
{
XslTransform xslt = new XslTransform();
xslt.Load("XSLTemplate.xsl");
XPathDocument xDoc = new XPathDocument("Books.xml");
XmlTextWriter writer = new XmlTextWriter("Books.html", null);
xslt.Transform(xDoc, null, writer, new XmlUrlResolver());
writer.Close();
StreamReader stream = new StreamReader("Books.html");
Console.Write(stream.ReadToEnd());
}
}
/*
title
Tom
19.95
title 2
Jack
9.95
*/
/*
A list of books
List of books
Title
Author
Price
*/