5 // Sean MacIsaac (sean@ximian.com)
7 // (C) Ximian, Inc. http://www.ximian.com
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
);