[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
Re: Feature request: removal of "unwanted" tags
- From: Fritz Zaucker <nospam@thanx>
- Date: 28 Jan 1998 15:24:27 +0100
rse@engelschall.com (Ralf S. Engelschall) writes:
> Currently I think the most flexible way to integrate this cleanly
> without doing quick hacks is to add a -P/--prolog=PATH flag to WML,
> similar to the already existing -E/--epilog=PATH flag. While the
> PATH of -E is a filter which is applied to all(!) outputfiles the
> PATH of -P could be a filter which is applied to the input file.
Not bad!
> There is only one decision remaining: the problem of include files.
> When -P just filters the input file, we don't get the include files.
> Alternatively we could apply the filter _after_ pass 1 (IPP), so we
> also get the include files. But this approach is a little bit
> unusual and not very intuitive to the user. Hmmmm...
> On the other hand, it is not useful to filter the include files,
> because you really need some WML stuff to produce the final HTML
> output. So it is only useful to filter the single input file itself.
I see the problem. An option would be to filter files called with
#include and not filter files called with use. Or base it on
extensions.
But I think I could live with filtering only the main input file.
> BTW: The filtering script itself is not very complicated.
> I'll write one for WML 1.6.0. What should it do. My
> current todo-entry is as following:
>
> o wml_aux/tagfilter/
>
> -f <configfile> where to find the config file
> -w just warn but don't remove anything
>
> The <configfile> then has lines of the form
> ``[SC] tagname''
> where S means single tag and C means container-tag.
sounds good. I guess the most flexible solution would be to have
something like
<allow>
</allow>
<deny>
</deny>
which would require also a wild card (like deny all, followed by allow
list ... or vice versa). As you are an Apache-guru, I am sure you know
what I mean.
> Any more ideas?
Don't doubt it ....
Cheers,
Fritz
--
Dr. Fritz Zaucker, Head IT Support Group
Department of Electrical Engineering, Federal Institute of Technology
ETZ J97, Gloriastrasse 35, 8092 Zurich, Switzerland
Tel.: +41-1-632-5241 Fax: +41-1-632-1194 http://www.ee-staff.ethz.ch/~zaucker/
E-mail: zaucker@ee.ethz.ch (see home page for PGP key)
______________________________________________________________________
Website META Language (WML) www.engelschall.com/sw/wml/
Official Support Mailing List sw-wml@engelschall.com
Automated List Manager majordomo@engelschall.com