[EMAIL PROTECTED] wrote:

> Ok,, I've tried the new <form:html> (build 22-11-2000)
>
> My comments :
> 1. As it is now, the <form:html> expects an empty body.
> Clearly, this must be wrong ?
> I want
> <form:html>
> <head>
> </head>
> <body>
> </body>
> </form:html>
>
> When I tried this in a jsp page I got the error that <form:html>
> expected an empty body.
>

I just fixed this one -- thanks for the bug report.

>
> 2. As far as I understand from http://www.w3.org/TR/xhtml1/ ,
> the <html> tag should look like this
> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
>
> This means that the <form:html> must also produce xmlns="..." .
>

The "xmlns" value is defined (in the DTD) with a default value corresponding to
the string you cite above.  That's why I chose not to bother generating it.

>
> 3. The attribute xhtml doesn't seem to have any effect.
> <form:html xhtml="true"/>
>
> produces : <html>, and not as I expected <html xml:lang="en">
>

What it should really generate is:

    <html lang="en" xml:lang="en">

But, this cannot happen until there is a Locale object stored in the user's
session in order to make the decision.  Go a few pages into the app and you will
see the language tags being generated.

>
> By the way, the lang attribute is constructed correctly, so that I get
> <html lang="no">
>
> Regards
> Alf Hogemark

Craig


Reply via email to