[tomboy-list] Html export custom xsl

Raymond rayauge at doublebite.com
Fri Jun 8 10:31:58 PDT 2007


On Fri, 2007-06-08 at 13:29 -0400, Raymond wrote:

> Hey All,
> 
> Great little tool BTW.
> 
> Question: I'm looking at the source of ExportToHTML.xsl

Sorry,

ExportToHTML.cs

> 
> I see at lines 29-39:
> 
> Assembly asm = Assembly.GetExecutingAssembly ();
> string asm_dir = System.IO.Path.GetDirectoryName (asm.Location);
> string stylesheet_file = Path.Combine (asm_dir, stylesheet_name);
> 
> xsl = new XslTransform ();
> 
> if (File.Exists (stylesheet_file)) {
> Logger.Log ("ExportToHTMLPlugin: Using user-custom {0} file.",
>    stylesheet_name);
> xsl.Load (stylesheet_file);
> } else {
> 
> It would appear that there is the facility to override the default xsl
> stylesheet with a custom version and that it should be placed in some
> folder. Seeing as I'm not a C# programmer I'm not familiar to which
> path asm_dir
> 
> Assembly asm = Assembly.GetExecutingAssembly ();
> string asm_dir = System.IO.Path.GetDirectoryName (asm.Location);
> 
> will resolve.
> 
> i.e. Where can I place my override ExportToHTML.xsl file?
> 
> Ideally in $HOME/.tomboy/Plugins would be perfect, but any will do at
> the moment.
> 
> 
> Thanks All,
> 
> PS: This is stable 0.6.3 source.
> 
> Raymond Auge <rauge at liferay.com>
> Software Engineer
> Liferay, Inc.
> Enterprise. Open Source. For Life.
> 
> 
> 
> 
> _______________________________________________
> tomboy-list mailing list
> tomboy-list at lists.beatniksoftware.com
> http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com

Raymond Auge <rauge at liferay.com>
Software Engineer
Liferay, Inc.
Enterprise. Open Source. For Life.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.beatniksoftware.com/pipermail/tomboy-list-beatniksoftware.com/attachments/20070608/f073b1c0/attachment.html 


More information about the tomboy-list mailing list