https://issues.apache.org/jira/browse/TAPESTRY-1264
On 3/14/07, Kovács István <[EMAIL PROTECTED]> wrote:
Hi, I'm playing with Tapestry 5 (thanks Davor for getting me started!). I need to include a DOCTYPE in my HTML. The t5-tutorial says it's possible ("Templates may even have a DOCTYPE or an XML schema to validate the structure of the template."); however, if I include a DOCTYPE in my template, it's removed in rendered output. That is, if my template is: === <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"> <head> <title>... === , rendered output is === <html><head><link href="/myapp/assets/tapestry/default.css" rel="stylesheet" type="text/css"><title>... === Without the DOCTYPE being there, I get a weird layout (I'm a beginner at CSS, too, so I may have broken something). BTW, the W3C validator says the "link" element is not closed properly, which is a requirement for XHTML. Please let me know how to include the DOCTYPE. TIA, Kofa --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]