[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
Re: mp4h problem with diversions
- From: Denis Barbier <nospam@thanx>
- Date: Thu, 20 Jul 2000 17:30:27 +0200
On Thu, Jul 20, 2000 at 05:01:30PM +0200, Stephane Bortzmeyer wrote:
> The declaration:
>
> <define-container footer>
> ..Footer>>%body<<..
> </define-container>
>
> worked fine in WML 1. I changed it to:
>
> <define-tag endtag=required footer>
> ..Footer>>%body<<..
> </define-tag>
Hi Stephane,
you should better write
<define-tag endtag=required footer>
{#Footer:%body:#}
</define-tag>
This `alternative' syntax is preferred since WML 1.7.3 in order to
prevent macro expansion problems.
Indeed, what does <<Footer>> mean with old syntax? It may be a dump or
<Footer> inside brackets.
> and, with WML 2.0.2, I get:
>
> /var/tmp/wml2/lib/exec/wml_p2_mp4h: ERROR:/tmp/wml.17849.tmp2.wml:862: EOF
> when reading body of the `footer' tag
> ** WML:Break: Error in Pass 2 (rc=1).
Well, this means that mp4h is not able to find </footer>.
When a container tag is defined, it must have an end tag.
In wml-SNAP, one can also write <footer/> when body is empty.
> (All my other "containers" have been translated successfully, with the minor
> problem that mp4h does not support the name of the tag in the closing
> </define-tag>, unlike Meta-HTML.)
Indeed this has been pointed out by Fritz Zaucker and has been fixed in
wml-SNAP.
--
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