[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
Re: Why does <set-var %body> not work?
- From: Denis Barbier <nospam@thanx>
- Date: Tue, 20 Feb 2001 10:21:35 +0100
On Tue, Feb 20, 2001 at 12:13:49AM +0100, Denis Barbier wrote:
[...]
> Hi Axel,
> here is what i did:
>
> prompt$ cat test.wml
> <define-tag CONFIGURATION endtag=required>\
> <set-var %body>\
> </define-tag>
> <set-var DESTINATION="/fnord/"
> TITLE="example"
> BASE="foobar"
> SUFFIX="html"
> DESC="Example">
> <CONFIGURATION>
> DESTINATION="/fnord/"
> TITLE="example"
> BASE="foobar"
> SUFFIX="html"
> DESC="Example"
> </CONFIGURATION>
>
> <get-var DESTINATION>
> prompt$ ~/wml-2.0.4/bin/wml test.wml
> /fnord/
>
> Looks good to me.
As suggested by Axel in a private mail, this answer does not have any
sense, sorry. In fact, %body is treated as a single entity, and i
currantly see no way to have it parsed as an array of attributes.
It seems fairly easy to add a new function, say <disjoin>, for doing
this job. Will send a patch soon (i.e. within 24 hours).
--
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