Hi,

I would like to know if there is a easy  way to access (read from composer - process - 
write back)
the HTML code generated by mozilla's composer using an external program.

My goal is to modify the Mozilla Composer code before it's published / saved, transparently for the user.

The kind of things I would like to fix is easily shown by this composer generated code snippet :

<img src="file:///C:/Mes%20Documents/internet/ban/fmxlr.gif" title="" alt="" style="width: 80px; height: 135px;">

My little application (I use Delphi) would correct it to :

<img src="ban/fmxlr.gif" style="width: 80px; height: 135px;" width=80 height=135>

(the local reference replacement with relative path is obvious, unused "title" & "alt" 
are removed and the added
width / height maintain compatibility with ... Netscape 4)

I found that many other similar fixes would be required for the composer to be useable as a small

There are a lot of other things I'd like to be able to fix, and all I need is a way to 
hook my utility so that
it gets triggered each time the HTML page is about to be saved/published. Additional 
hook that would allow me
to fix the code whenever the "View Source" tab is activated would be nice but is non 
essential.

I'm only interrested in a Windows based version for now, but since Kylix compiles the 
same source for Linux it
should be quite portable.

My "fix" software would be open source.

--------

My goal with it is to allow inexperienced users to build their website using Mozilla's 
composer. As it is right
now, Mozilla's code is non functional for this use.
I could make the html fix software independant, but this would force the user to use 
it each time he/she wishes
to publish a page, thus making the process very user unfriendly.

--------

Since the fix does not require any user interface and I don't want to spend weeks 
learning how to become a
Mozilla developper, I'm searching for the simplest solution (DDE communication would 
be Ok, or anything else
I can use with Delphi)

Thanks for your time,

Eric




Reply via email to