Thorsten Scherler wrote:
El vie, 24-03-2006 a las 12:09 +0100, Andreas Hartmann escribió:
Thorsten Scherler wrote:

[...]

Hmm, I always wondered why we have been limiting everything to the <div
id="body"/>. Why we are not changing the page2xhtml.xsl like:
...
<head>
 <xsl:apply-templates
select="xhtml:[EMAIL PROTECTED]'content']/xhtml:[EMAIL PROTECTED]'head']"/>
</head>
That (content/head) looks a little strange IMO.

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?


--
"Open source takes the bullshit out of software."
        - Charles Ferguson on TechnologyReview.com

--
Jörn Nettingsmeier, EDV-Administrator
Institut für Politikwissenschaft
Universität Duisburg-Essen, Standort Duisburg
Mail: [EMAIL PROTECTED], Telefon: 0203/379-2736

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

Reply via email to