hi,

has anybody ever thought about supporting HTML 4.01 in
the DOMXML extension as Gnome libxml supports it anyway?

should be a relatively simple addon, yet extremely useful for
processing layout templates and finally killing the long thread
of discussion on the brain-dead text-substituting templating
engines. i think the text-substituting way of templating sucks
because you basically invent a new way to mark up things,
which is nonsense since html itself already is a markup language.
now when you use your little text-substituting engine a bit in practice,
you will eventually find that you need more than just text-substitutions
and then you start inventing a whole new scripting language for rolling
loops, etc, which is extra idiotic as php itself already is a scripting
language, letting you do all that, and more. the only thing you have
gained at the end is a relatively dumb monster which is slower,
non-standard, lets you do less and does it all worse, no matter
whether it is written in PHP, C or assembly. if i wanted to do
any text substitutions, i would do that with <?= $var ?> and
if i wanted to roll out a table row, i would do that with
<? while(...) { ?><tr> ..... </tr><? }?>, simple as that.
there's no point in using a home-brewn scripting language
to do those tasks, is there? all the constructs are already part
of the php language...

on the other hand, DOM is the ultimate way of processing
HTML templates that would make both programmers and
pixel people coexist happily ever after. we could finally have
100% separation of program code from layout, as bits of
subtrees to process - such as tables, forms, menus, headings,
places for textual content, etc - would only be marked by
simple id's either in the id="..." or name="..." attributes or
comment nodes instead of by myriads of custom constructs
inside some custom delimiters such as single, double, triple
or quad curly braces... the advantage would be that our
templates would conform to the HTML standard and
therefore avoid any surpires caused by the designer's
favourite WYSIWYG editing software or lack of knowledge.
i really think the design people should NOT  know anything
about PHP syntax or any custom markup constructs to successfully
do their job - designing HTML, nothing less and nothing more.
unless you are in a habit of hiring dentists to do your brain surgeries ;)

--
lauri




-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to