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

Re: Problems moving from 1.7.4 to 2.0.1 (resent)

On Fri, Jul 07, 2000 at 03:56:39PM +0200, Stephan Petersen wrote:

> Hi guys,
> a month ago I posted these questions to the list, but I haven't received
> any replies so far. I just downloaded and installed the latest snapshot,
> the effect is the same.
> I do get lots of warnings like these:
> /usr/local/lib/wml/exec/wml_p2_mp4h: Warning:/tmp/wml.19590.tmp2.wml:2:
> unknown syntax `defsubst' in <let>
> /usr/local/lib/wml/exec/wml_p2_mp4h: Warning:/tmp/wml.19590.tmp2.wml:2:
> unknown syntax `define-tag' in <let>
> /usr/local/lib/wml/exec/wml_p2_mp4h: Warning:/tmp/wml.19590.tmp2.wml:3:
> unknown syntax `defmacro' in <let>
> /usr/local/lib/wml/exec/wml_p2_mp4h: Warning:/tmp/wml.19590.tmp2.wml:3:
> unknown syntax `define-container' in <let>
> /usr/local/lib/wml/exec/wml_p2_mp4h: Warning:/tmp/wml.19590.tmp2.wml:4:
> unknown syntax `prog' in <let>
> [...]
> I'm not sure why I get them, I assume they relate to the move to mp4h and
> specifically the inclusion of /usr/local/lib/wml/include/sys/bootp2.wml,
> but I don't know why I get them.

The problem is that wml::sys::bootp2 is no more shipped with WML.
Unfortunately, it will be loaded by wml if it exists.

So you have to remove this file.

This bug will be fixed in next release, wml will only load
wml::sys::bootp3 and wml::sys::bootp4.

> All my wml files first #include an include file of my own, which in turn
> contains all the necessary #use commands, then starts to define some
> frequently-needed tags. V2.0.1 complains during the ePerl pass about the
> "@" in the following example:
> <define-tag myemail> 
> <a href="mailto:me@my.com">me@my.com</a> 
> </define-tag>
> I have to replace that with 
> <define-tag aspemail> 
> <a href=\"mailto:info@aspetersen.de\">info@aspetersen.de</a> 
> </define-tag>
> (i.e. escape the quotes), is that a side-effect of the change to mp4h
> too, or is that due to an updated ePerl?

If ePerl complains, this means that <aspemail> is used within some ePerl
commands. Could you send a more complete example?

> On another note: README.mp4h contains this example, which I don't
> understand:
>  With mp4h,
>  <define-tag foo>Here:%attributes!!</foo>
>  <foo "x <foo "1" "2"> y>"
>  gives
>  Arg1:y Attrs:x Arg1:2 Attrs:1 2!! y!!
> Before I dig into that one: is there maybe something missing?

Oops, one should read
      <define-tag foo>Arg1:%1 Attrs:%attributes!!</define-tag>
      <foo "x <foo "1" "2">" y>
which gives sense to this comparison with Meta-HTML.

Thanks for your report.

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