[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Re: [LONG][RFC] WML 2.0.0, quotes and tags

On Mon, 22 May 2000, Franz Knipp wrote:

> Hello!
> On Mon, 22 May 2000, Roland Rosenfeld wrote:
> > <ifeq this="0" that="0">
> >   <then>
> >      foo
> >   </then>
> >   <else
> >      bar
> >   </else>
> > </ifeq>
> The <when> tag exists already. What do you think of:
> <when <string-eq "<get-var this>" "<get-var that>">> # exists
> foo
> <else>                                               # doesn't exist yet
> bar
> </when>
> This is shorter and needs only the implementation of an <else> tag (and
> I'd like to suggest an <elsewhen>, too)...

Sounds great! I do not know whether it is doable (next time you could
provide a patch too ;-))

I am quite conservative and this suggestion does not break previous
files, it is IMO a very nice idea.
If there is no objection, i'll try to implement it.

There could be some discussion whether the <else> clause is a single or
complex tag.

Denis Barbier
WML Maintainer

Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com