[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
Re: [LONG][RFC] WML 2.0.0, quotes and tags
- From: Roland Rosenfeld <nospam@thanx>
- Date: Mon, 22 May 2000 12:24:57 +0200
On Sat, 20 May 2000, Denis Barbier wrote:
> 4. What must be changed?
> =-=-=-=-=-=-=-=-=-=-=-=-
>
> I agree with your bug reports, it is a very bad idea to have different
> behaviours depending whether tags are defined or not.
>
> Of course it is easy to consider that unknown tags are simple tags, this
> will fix
> <ifeq 0 0 <img src="foo.png" alt="">>
>
> But it breaks
> <: print "<img src=\"" . $file . "\" alt=\"" . $alt ."\">"; :>
>
> And even worse, consider
> <: print <<EOT;
> Hey, how to finish this pseudo EOT tag?
> EOT
> :>
>
> In fact i focused my view on these last topics, to ease mixing ePerl and
> mp4h, but i did not realize that this syntax was confusing.
> Now that the problem is clearly (?) expressed, it should be solved
> quickly ;-)
Okay, I understand the problem now, but I still hate the syntax.
Wouldn't it be better to completely change the syntax of <ifeq> like
this:
<ifeq this="0" that="0">
<then>
foo
</then>
<else
bar
</else>
</ifeq>
The <else> tag is optional. This looks much more like HTML and it
should be easier to cascade multiple <ifeq> constructs. Similar
syntax for <ifneq> and <if> (the latter seems to be near to the <when>
tag).
I don't know, whether this can be easily implemented, but it sounds
much more intuitive to use to me than the cascading of quotes and
quoted quotes. Instead of this we have a syntax similar to the
<table> tag here.
Tschoeeee
Roland
--
* roland@spinnaker.de * http://www.spinnaker.de/ *
______________________________________________________________________
Website META Language (WML) www.engelschall.com/sw/wml/
Official Support Mailing List sw-wml@engelschall.com
Automated List Manager majordomo@engelschall.com