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

Re: Idea how not to need future enhancement of WML - Environment

Hello Jan!

On Wed, 5 Jul 2000, Jan Holler wrote:
> > Another point of view: Imagine three different styles for your web-page: a
> > text-only-version, a compact graphical version and an extensive graphical
> > version... You want to write the content only once, with normal text,
> I "solved" this by using different templates for each
> subversion and switch between them via .wmlrc

Ok - this would be a solution for your this case - but I want to use
different environments at one page!

> I may misunderstand you, but I'd rather like to have a
> (central-)definition file in which I predefine the styles.

Yes, of course, you can define all environments at one place, in one file

> What is with your idea when you've got a 200-pages-site and
> want to _add_ a "new" environment (or style) to it?

Ok - I see, that now everyone thinks in page styles :-(

> Have a look at CSS. The concept with wml could be similar.

Yes - I think that my idea is something like that with another syntax...

I'll give another example which I programmed yet:

<ptable> is a container for a table made of photos and text.
<ptable:text> is used to put text in one of this cells.
<ptable:pic> is used to put a picture in one of this cells.

I didn't want to define simple <text> and <pic> tags, because these names
are to general (and I used them in another `environment´ too)...

Now, a page using <ptable> looks in this way: (real-world example ;-) )

<ptable:text row="3" col="2">
Im April organisierte ich eine Reise f&uuml;r insgesamt <B>40
Personen</B> der <B>IAESTE Austria</B> nach Spanien, genauer Barcelona
und Valencia.
<ptable:pic row="1" col="2" src="iaeste/09_01.jpg">
...aus der N&auml;he betrachtet...</ptable:pic>
<ptable:pic row="2" col="2" src="iaeste/09_02.jpg">
...noch ganz jung.</ptable:pic>
<ptable:pic row="1-2" col="1" src="iaeste/09_03.jpg">
Ein Teil der Gruppe...</ptable:pic>
<ptable:pic row="3" col="1" src="iaeste/09_14.jpg">
Auch ein Besuch in meinem Reiseb&uuml;ro stand am Programm</ptable:pic>

... and a more simplific version would be:

<pic>Another picture</pic>

A simple <ptable:text> out of a <ptable> container doesn't make sense
(absolutely no sense), therefore environments would enforce that by using
<text> and <pic> ;-)

Another idea was, that I want to make a kind of module of this picture
table, which should co-exist with another modules which use similar <text>
and <pic> tags, and I don't want to overwrite their definitions...

Another example would be the new <perl> tags: inside of <perl></perl> the
tag <perl:print> could be substituted by <print>, the same for
<perl:print:>, <perl:assign>, etc. This is shorter to write ;-)

But, as I stated in the last mail: I've got this idea in the pre-mp4h era,
now I can solve these problems by using <let> ;-)

Thanx for reading that much!

Nice greetings,


Franz KNIPP                                       Mobil: +43 676 485 95 50
A-1180 Wien, Gentzgasse 129/1/5, Austria            TEL: +43  1  478 18 01
http://www.knipp.org/franz/                                franz@knipp.org
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com