5 using System
.Xml
.XPath
;
6 using System
.Reflection
;
7 using System
.Collections
.Generic
;
9 namespace Monodoc
.Generators
.Html
11 public class Toc2Html
: IHtmlExporter
13 XslTransform transform
;
17 transform
= new XslTransform ();
18 var assembly
= Assembly
.GetAssembly (typeof (Toc2Html
));
19 var stream
= assembly
.GetManifestResourceStream ("toc-html.xsl");
20 XmlReader xml_reader
= new XmlTextReader (stream
);
21 transform
.Load (xml_reader
, null, null);
24 public string Export (Stream input
, Dictionary
<string, string> extraArgs
)
26 var output
= new StringWriter ();
27 transform
.Transform (new XPathDocument (input
), null, output
, null);
28 return output
.ToString ();
31 public string Export (string input
, Dictionary
<string, string> extraArgs
)
33 var output
= new StringWriter ();
34 transform
.Transform (new XPathDocument (new StringReader (input
)), null, output
, null);
35 return output
.ToString ();
38 public string CssCode
{