Read command line input and do the xml xsl translation

image_pdfimage_print
   

using System;
using System.Xml.Xsl;

public class Transform {
  public static void Main(string [] args) {
    string source = args[0];
    string stylesheet = args[1];
    string destination = args[2];

    XslTransform transform = new XslTransform();
    transform.Load(stylesheet);
    // for .NET v 1.0
    //transform.Transform(source, destination);
    // for .NET v 1.1
    transform.Transform(source, destination, null);
  }
}


           
          


This entry was posted in XML-RPC. Bookmark the permalink.