I see some of your points. The W3C one is supposed to be an XHTML validator.. I've run both XHTML 1.0 Strict and XHTML 1.0 Transitional, but I think you're right in saying it doesn't pick up the Tapestry XML namespace.

I am, however, validating the final HTML output. I point the url to the page and it loads the page and runs on the generated HTML. The nesting of the <html> tags still seems a valid point, unless I'm still missing something here or writing the tags wrong.

If you are interested in seeing what I'm talking about, here is a link to the validation I see:
http://validator.w3.org/check?uri=https%3A%2F%2Fwww.moremagicpoints.com%2Fmloyalty%2Findex&charset=%28detect+automatically%29&doctype=Inline&ss=1&outline=1&group=0&user-agent=W3C_Validator%2F1.1

-Rich

On 01/04/2011 12:51 PM, Thiago H. de Paula Figueiredo wrote:
On Tue, 04 Jan 2011 15:14:00 -0200, Rich M <rich...@moremagic.com> wrote:

Hi,

Hi!

I searched through the mailing list and the last thread on this topic seems to date back to 2006. First, I'd like to know what the expected doctype is, is it XHTML 1.0 Transitional, XHTML 1.0 Strict, or something else?

Tapestry doesn't make any assuptions on the doctype. Tapestry can output HTML (default) or XML syntax documents.

Also, the best reference I've seen for using Layout components to structure a site is along the lines of having a Layout.tml start with a <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";> tag, then all Templates using it also starting with <html t:type="Layout" xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";>. HTML Validation complains about nested <html> tags.

Tapestry templates are XML files and most HTML validation tools don't understand XML namespaces. Have you tried to find and use XHTML validators?

So I guess I'm partly wondering if W3C HTML Validation is achievable, or if I need to learn to distinguish the exceptions from my own issues?

You seem to be validating the templates themselves instead of the generated HTML.

I've got some CSS and HTML bugs I need to work through and the Web Design people helping me are throwing a fuss about the HTML and so on.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to