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

c) or d)

On Sat, 27 May 2000, Stefan `Sec` Zehl wrote:

> On Fri, May 26, 2000 at 10:13:53PM +0200, Denis Barbier wrote:
> > > > 6) <BLA <BLB>></BLB>></BLA> or <BLA <BLB>></BLB></BLA>
> > > expand BLA with argument <BLB> and %body </BLB>>
> > 
> > <comment>
> > No, <BLB> alone does not make sense.
> > </comment>
> > 
> > <BLA> has one attribute which is <BLB>></BLB> and an empty body.
> I don't think so. It would be violating POLA. A tag should close with
> the first 'available' >.

What is POLA?

> <BLA <BLB>> Is clearly BLA with attribute <BLB> no matter what follows.

I strongly disagree.  In my mind innermost tags must be closed first.
So here is another question, which one is preferred?
 c) first open, first close
 d) last open, first close

My preferred one is (d) (and to be honest i never thought of (a) before)
because it prevents nesting problems, e.g.
  <define-container bla>%body</define-container>
is valid with (c).

And it allows
  <define-tag foo>
    Before definition: <bar>
    <define-tag bar>
  After definition: <bar>

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