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

Re: small problem with wml

On Tue, Dec 12, 2000 at 03:54:42PM -0500, James A. Treacy wrote:
> There is clearly something wrong in the following:
> Running wml on the following:
>   <define-tag URL whitespace=delete>
>      <: if(q{%0} eq "") { print "&lt;none&gt;";}
>         else { $tmp=q{%0}; print "<a href=\"$tmp\">$tmp</a>";}
>   :> </define-tag>
>   <URL http://a.b.c/cd/>
>   <URL http://a.b.c/cd/ >
> gives
> <a href="http://a.b.c/cd">http://a.b.c/cd</a>
> <a href="http://a.b.c/cd/">http://a.b.c/cd/</a>
> Why is the last slash disappearing?

Hi Jay,

this is because i want WML to be able to process both HTML and XHTML
documents, so i make WML modules XHTML friendly, and by default
trailing slash are removed within attributes.

I believed that mp4h was customizable, and would have suggested
something like
     wml -W2,--expansion=3082
but it does not work. Will try to fix this soon.

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