|
Listing 21-13 extracted from chapter XML
Listing 21-12< > Listing 21-14
This listing can be compiled with the command line: csc.exe /target:exe Example_21_13.cs Errors: 0 Warnings: 0
Example_21_13.cs
using System.Xml.Xsl;
class Program {
static void Main() {
System.Xml.XmlDocument xDoc = new System.Xml.XmlDocument();
xDoc.Load(@"C:\books.xml");
XslCompiledTransform xTrans = new XslCompiledTransform();
xTrans.Load(@"C:\books.xslt");
xTrans.Transform(xDoc, null, System.Console.Out);
}
}
Copyright Patrick Smacchia 2006 2007
|