[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
Re: Web page margins
- From: Axel Beckert <nospam@thanx>
- Date: Fri, 13 Jul 2001 13:52:05 +0200
Hi!
Denis Barbier wrote:
> But may I suggest we talk again about `runtime' attributes?
Yes, it was quite quiet about that feature the last months... ;-)
> <page :body:marginwidth="8" :body:marginheight="8"
> :body:leftmargin="8" :body:topmargin="8">
>
> I would like to hear comments to improve this feature, which adds extra
> flexibility by letting user add any attribute in HTML tags.
I think, in general it's a really good idea, but for some cases,
default tags for runtime attributes would also be useful:
Example: <url> from wml::fmt::url
<define-tag url endtag=required>
{:\
[[s|\b(http://\S+)|<a href="$1">$1</a>|g]]\
[[s|\b(ftp://\S+)|<a href="$1">$1</a>|g]]\
[[s|\b(gopher://\S+)|<a href="$1">$1</a>|g]]\
[[s|\b(telnet:\S+)|<a href="$1">$1</a>|g]]\
[[s|\b(news:\S+)|<a href="$1">$1</a>|g]]\
[[s|\b(mailto:\S+)|<a href="$1">$1</a>|g]]\
%body\
:}\
</define-tag>
Here it is obvious, where the runtime arguments have to go: To the <a>
tag. So here <url target=foo> should be equivalent to <url :a:target=foo>.
And there is something else, which IMHO we should think about:
Although in the above case (and probably other cases, too) with
runtime arguments, it isn't possible to distinguish to which of the
<a> tags the arguments go, e.g. a target argument doesn't make big
sense on a news or mailto link.
Regards, Axel
--
Axel Beckert - abe@cs.uni-sb.de - http://abe.home.pages.de/
Student of Computer Science, University of Saarland (Germany)
Artificial Intelligence Laboratory (AI Lab), Prof. Dr. W. Wahlster;
WWW-/FTP-Administrator IBFI Schloß Dagstuhl; Students Representative CS
______________________________________________________________________
Website META Language (WML) www.engelschall.com/sw/wml/
Official Support Mailing List sw-wml@engelschall.com
Automated List Manager majordomo@engelschall.com