Ernst Bunders wrote:
> I agree the core should be generic.
> perhaps it is a nice idear to replace the sitestat escaper for a
> ConfigurableEscaper, using regexp or whatever to escaper presets. An xml
> file could be added with a number of conveneant configurations, like
> sitestat.

Such escapers exists already. 

But I think this 'sitestat' functionality (which actually only very
rigourously limits the charset) would be hard to define with a regexp, and
it's easy to do with a few lines of java.

Perhaps it would be possible to add some java-code to config-files or so,
and dynamicly create byte code in a parameterized transformer.  But well, I
wouldn't even know for sure if that is possible, and I'm sure that to
implement _that_ instead if would have costed Andre about a thousand times
more time (and that might actually not be an exaggeration).

Coming to thing of it, what is missing too is a parameterized replacer based on
Matcher#appendReplacement. That would perhaps also have done the trick. So
in that sense I do agree.

But then still you would want to have 'sitestat' as an entry in the
belonging default config file. So actually it would still be in the core.

Michiel


-- 
Michiel Meeuwissen                  mihxil'
Mediacentrum 140 H'sum                [] ()
+31 (0)35 6772979         nl_NL eo_XX en_US



_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers

Reply via email to