Hi, I've ported the xmlbs code from org.apache.regexp to java.util.regex and changed the distribution format to a jar-file. Apart from class files this jar-file also contains the source files and a license notice.
http://www.xs4all.nl/~rwvtveer/xmlbs/ http://www.xs4all.nl/~rwvtveer/xmlbs/#3 http://www.xs4all.nl/~rwvtveer/xmlbs/xmlbs-0.0.7.jar Please let me know if this works for you. Remco On Fri, Apr 16, 2004 at 11:47, Pierre van Rooden wrote: > I have been toying a bit with the WordFilter class in the speeltuin CVS. > I adapted the class locally so it now works as a processor that can be > hooked into certain field types using the fieldtypes.xml (in MMBase 1.7) > and the hooks in the bridge. > It works quite nice. If you add the following to the fieldtypes xml: > > <specialization id="html"> > <setprocessor> > <class>nl.omroep.mmbase.processors.WordHtmlCleaner</class> > </setprocessor> > </specialization> > > You activate the processor. (I used a different package so I can easily > include the class in our catch-all 'omroep' jar, in case you are wondering). > By specifying the guitype 'html' for a field I can now have it filtered > by the Word Cleaner code - it works with the taglibs, the editwizards, > and everything else that uses the bridge. > > There may be some improvements that can be made - a lot of the original > code is static and I am unsure if that can cause problems if multiple > threads use the code (probably not, just not sure). > I have downloaded a version of xmlbs from may 2003 (not sure if that is > the last one). It uses several jars that I would rather leave out (maybe > I do not need all of them in a production environment?). > > Anyway I was thinking if and how this can be bundled in an application > for download (assuming Nico and Remko think this is a plan). And where > it would be best to store sources. > The speeltuin is an idea, though ofcourse one can also decide to reverse > the logic and put the MMBase-plugin on the xmlbs site? > I can hardly decide this myself, as I only added a few lines to already > existing code, but I think this plugin would be very useful to a lot of > people, and using the new field hooks it becomes a lot more versatile. > > -- > Pierre van Rooden > Mediapark, C 107 tel. +31 (0)35 6772815 > "Never summon anything bigger than your head." > > > --
