[tomboy-list] Html export custom xsl
Raymond
rayauge at doublebite.com
Fri Jun 8 10:29:17 PDT 2007
Hey All,
Great little tool BTW.
Question: I'm looking at the source of ExportToHTML.xsl
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.beatniksoftware.com/pipermail/tomboy-list-beatniksoftware.com/attachments/20070608/280069df/attachment.html
More information about the tomboy-list
mailing list