[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
Re: slices: <img> and <set-var> problem (again)
- From: Denis Barbier <nospam@thanx>
- Date: Sun, 5 Dec 1999 20:14:45 +0100 (CET)
On Mon, 13 Dec 1999, Jan Holler wrote:
[...]
> but let's go ahead with the problems: this simple example
> does not work and shows well where i have a hard time to
> understand the consistency of wml here.
>
> #!wml -o (ALL-LANG_*)uLANG_DE:%BASE.html \
> -o (ALL-LANG_*)uLANG_FR:%BASE_f.html
>
> #use wml::std::lang
> <lang:new id=de short>
> <lang:new id=fr short>
>
> <html><head><title>test</title></head><body>
>
> <set-var bar = "<de: german><fr: french>" >
> <de> 2. German bar is: <get-var bar> </de>
> <fr> 3. French bar is: <get-var bar> </fr>
>
> </body></html>
>
> output is for test.html:
> 2. German bar is: germanfrench
> german
>
> and for test_f.html:
> french
> 3. French bar is: germanfrench
>
> yes. this is really the output. that should not happen!
I disagree, this output is correct. I know this is not intuitive,
but it reflects current slice grammar.
A solution is to implement the LANG_*@ notation, but i failed.
You may also try
#!wml -o (ALL-LANG_*)uLANG_DE@:%BASE.html \
-o (ALL-LANG_*)uLANG_FR@:%BASE_f.html
but you have to patch the wml binary.
After the comment ``create output file listfor epilog filters'',
add an @ sign after ``^x()'' (2 lines modified).
--
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