Jörn Nettingsmeier wrote:

[...]

Then we could as well use plain XHTML for the view
(including head and body), couldn't we?

+1

That was just an example. ;)

IMO we should use plain xhtml grammar. I do not really see the benefit
yet of Jörns idee of adding lenya: ns.

i'm proposing it to make things explicit. when i browse a stylesheet, i can immediately see "hey, a tag from a special namespace, that's probably a marker of some kind", and i can grep for it and learn what's going on. imho, there are way too many non-obvious, implicit things going on in cocoon and especially lenya, and here's a chance of getting rid of one.

for an example of the problems that can arise, see earlier in this thread: a user forgot to add the <div id="body"/> to a module xslt and ended up with an empty output, likely because she had not realized its special meaning.

and why should i be forced to have a <div id="body"> in my output at all?

With plain XHTML, you wouldn't.

IMO the only reason not to use XHTML is that certain elements would
be stripped/replaced, e.g. the <xhtml:title> (because this would be
replaced with the <dc:title> so that all page titles are handled in
the same way, independent from the resource type).
This might cause confusion (but I don't think it is really harmful).

-- Andreas

--
Andreas Hartmann
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
[EMAIL PROTECTED]                     [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to