Enable S/390 64-bit JIT
[mono.git] / status / ByMaintainer.cs
blobd76a0c8755b095cbb4986a99f06c2b0371a064ea
1 //
2 // ByMaintainer.cs
3 //
4 // Author:
5 // Sean MacIsaac (sean@ximian.com)
6 //
7 // (C) Ximian, Inc. http://www.ximian.com
8 //
10 using System;
11 using System.IO;
12 using System.Xml;
13 using System.Xml.Xsl;
14 using System.Xml.XPath;
16 namespace Mono.StatusReporter {
17 public class ByMaintainer {
18 static int Main (string[] args) {
19 XslTransform xslt = new XslTransform ();
20 xslt.Load ("ByMaintainer.xsl");
21 //StreamWriter sw = new StreamWriter ("bm/index");
23 XPathDocument doc = new XPathDocument ("class.xml");
25 XmlDocument maintainers = new XmlDocument();
27 maintainers.Load ("maintainers.xml");
29 XmlNodeList people = maintainers.GetElementsByTagName("person");
30 foreach (XmlNode node in people) {
31 string email = node.Attributes.GetNamedItem("email").Value;
32 string name = node.Attributes.GetNamedItem("name").Value;
34 //sw.WriteLine ("<li><a href=\"" + email + ".html\">" + email + "</a>");
36 XmlWriter writer = new XmlTextWriter ("src/" + email, null);
38 XsltArgumentList xslArg = new XsltArgumentList ();
39 xslArg.AddParam ("email", "", email);
40 xslArg.AddParam ("name", "", name);
42 xslt.Transform (doc, xslArg, writer);
44 writer.Close ();
47 //sw.Close ();
49 return 0;