I've run into this problem as well, and ended up modifying
org.apache.tapestry.dom.Document#toMarkup(PrintWriter) to call
writer.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"
http://www.w3.org/TR/html4/strict.dtd\">");
before calling _rootElement.toMarkup().
Maybe Document needs a getDocType() / setDocType() that gets used internally
in toMarkup(PrintWriter)? Plus maybe some constants for some of the more
common doctypes?
On 3/14/07, Robert Zeigler <[EMAIL PROTECTED]> wrote:
Howard,
What are your thoughts on how to get doctypes from templates into the
rendered output stream? Put another way, what's preventing this from
happening at the moment? This is something I'm needing at the moment,
so I'd be happy to jump in and and take care of this todo...
Robert
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]