On Mon, 2003-11-03 at 14:59, Marc van Kempen wrote: > Bruno Dumon wrote: > > On Sat, 2003-11-01 at 16:20, Marc van Kempen wrote: > > > >>Bruno Dumon wrote: > >> > >>>On Fri, 2003-10-31 at 22:54, Marc van Kempen wrote: > >>> > >>> > >>>>Bruno Dumon wrote: > >>> > >>><snip/> > >>> > >>>>>My first thought was to do this cleanup stuff serverside (could be as > >>>>>simple as an XSL, which would make it easily customisable too). However > >>>>>it seems like you want to do all that on the client side? > >>>>> > >>>>> > >>>>> > >>>> > >>>>This won't work, you need valid xml to use xsl, > >>> > >>> > >>>Ever heard of JTidy? > >>> > >> > >>Yep, I'm not 100% sure if I tried JTidy (I'm pretty sure though), but I > >>did try the commandline program html tidy, and this crashed on some of > >>the html garbage that Word spits out. The last release of the program > >>was in 2000, so I didn't place a lot of trust in it. > >> > >> > >>>>and the IE html in > >>>>particular can be very troublesome to fix. > >>> > >>><snip/> > >>> > >>>Thanks for sharing your experiences. > >>> > >> > >>No problem, are you interested in my offer, or shouldn't I bother > >>discussing it (releasing my editor as open source)? > > > > > > Ah sorry, didn't pay attention to that. Of course I'm interested, but on > > the other hand I can't promise that we'll make use of it without ever > > having seen the code. > > > > What would be included? Only client side code or also the server-side > > cleanup code? > > > > Both if there is interest. It consist of the following components: > > - editor.js + images > The implementation of the editor object and supporting images. > - js-gui.js > Javascript gui components. > > This will give you the editor, > (I haven't worked out the image upload problem yet, for now you can > write a user-defined function and configure the editor object to use > that function. A default function is provided that will take a list of > images and let the user choose from it in a popup form.) > > - HTMLFix.java > html clean up component, accepts a text stream, spits out a text > stream. > > This component fixes the html, I also wrote a component that will remove > unwanted tags and attributes (actually it will only leave those tags and > attributes that you want, and remove all the rest). I'd have to cut that > out of an existing component. > > Actually I just discussed it, and we can release the components as open > source
cool > (I believe the apache license is similar to the BSD license?) yep > > How shall I distribute it? can you put in on a FTP server somewhere? -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED]