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

Re: Why does <set-var %body> not work?



On Mon, Feb 19, 2001 at 11:11:41PM +0100, Axel Beckert wrote:
> Hi!
> 
> I just encountered a little problem, and I'm not really understanding,
> why it appeared. I used 
> 
> <set-var DESTINATION="/fnord/"
> 	 TITLE="example"
> 	 BASE="foobar"
> 	 SUFFIX="html"
> 	 DESC="Example">
> 
> as meta data section in my WML files. Now I tried to make it look a
> little bit easier to novices:
> 
> <CONFIGURATION>
> 	DESTINATION="/fnord/"
> 	TITLE="example"
> 	BASE="foobar"
> 	SUFFIX="html"
> 	DESC="Example"
> </CONFIGURATION>
> 
> and wrote the follwoing macro:
> 
> <define-tag CONFIGURATION endtag=required>\
> <set-var %body>\
> </define-tag>
> 
> But it didn't work, so I tried

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.

-- 
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