Xsl transformations

Transformation Class

With the "interesting" part of Xsl being in the stylesheet, thereis not much API, mono would need. In fact There is only one very simple Class: System.Xml.Xsl.XslTransform() I will put an example here, there is nothing more to explain.

However Xsl itself needs explanation. You can read about it in the next chapter.

Using XslTransform()

using System;
using System.Xml.Xsl;

class Test {

        public static void Main() {
                XslTransform transform1 = new XslTransform();

                transform1.Load("stylesheet.xsl");
                transform1.Transform("file.xml", "transformed.html");
        }
}

A. Credits

Authors: Johannes Roith (johannes@jroith.de)