On Thursday 02 March 2006 11:36, Barry Books wrote:
> It's the doctype. For more than you ever wanted to know about what it
> does see http://www.quirksmode.org/
>
> Most likely you want xhtml strict or xhtml transitional.

Yes - I ran into exactly this problem.  Note you can provide a doctype 
parameter to the shell component.  I was having problems with a border 
component that was kicking IE into quirks mode because of the way the shell 
component works.  There is a very good mailing list for css issues called 
cssdiscuss they helped me understand what I needed (in DOCTYPE and css terms 
- not dealing with Tapestry) see

 http://lists.css-discuss.org/mailman/listinfo/css-d

This is what you need in order for header information that is produced by the 
shell component pass w3c validation.  (Note the use of the delegate parameter 
here also.  I use it to generate css references where the urls of the CSS 
files are taken from  various properties files.  That way I can serve static 
content using apache and limit tomcat to the dynamic bits)

<html jwcid="@Shell" title="ognl:appTitle" delegate="ognl:siteCSS" 
        doctype='html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";'>


I think its a bit bad that the default DOCTYPE of the shell component, and the 
way it produces the html in the header are not compatible.


-- 
Alan Chandler
http://www.chandlerfamily.org.uk
Open Source. It's the difference between trust and antitrust.

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

Reply via email to