/// <summary> /// Load the predefined set of xslt stylesheets into a dictionary /// </summary> /// <param name="extensibiltyStylesheet"></param> /// <returns>The populated collection</returns> public static StyleSheetCollection LoadStyleSheets( string extensibiltyStylesheet ) { StyleSheetCollection stylesheets = new StyleSheetCollection(); #if NO_RESOURCES string resourceBase = "file://" + Path.GetFullPath(Path.Combine(System.Windows.Forms.Application.StartupPath, @"..\..\..\Documenter\NativeHtmlHelp2\xslt") ); #else string resourceBase = "NDoc.Documenter.NativeHtmlHelp2.xslt"; #endif XsltResourceResolver resolver = new XsltResourceResolver(resourceBase); resolver.ExtensibilityStylesheet=extensibiltyStylesheet; Trace.Indent(); stylesheets.AddFrom( "namespace", resolver ); stylesheets.AddFrom( "namespacehierarchy", resolver ); stylesheets.AddFrom( "type", resolver ); stylesheets.AddFrom( "typehierarchy", resolver ); stylesheets.AddFrom( "allmembers", resolver ); stylesheets.AddFrom( "individualmembers", resolver ); stylesheets.AddFrom( "event", resolver ); stylesheets.AddFrom( "member", resolver ); stylesheets.AddFrom( "memberoverload", resolver ); stylesheets.AddFrom( "property", resolver ); stylesheets.AddFrom( "field", resolver ); Trace.Unindent(); return stylesheets; }
/// <summary> /// loads and compiles all the stylesheets /// </summary> public void LoadStylesheets(string extensibiltyStylesheet) { _stylesheets = StyleSheetCollection.LoadStyleSheets(extensibiltyStylesheet); }