You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Kovács István <ko...@gmail.com> on 2007/03/14 16:46:39 UTC

How to include DOCTYPE?

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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: How to include DOCTYPE?

Posted by D&J Gredler <dj...@gmail.com>.
https://issues.apache.org/jira/browse/TAPESTRY-1264


On 3/14/07, Kovács István <ko...@gmail.com> 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: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: How to include DOCTYPE?

Posted by Kovács István <ko...@gmail.com>.
Thanks for the reply. As it turns out, the problem was with my CSS.

On 14/03/07, Robert Zeigler <ro...@scazdl.org> wrote:
> Pretty sure this isn't supported yet.
> See: http://tapestry.apache.org/tapestry5/tapestry-core/guide/dom.html
> Under "Dom Classes", Document, there's a "todo" that includes doctype
> support.
>
> Robert
>
> On Mar 14, 2007, at 3/1410:46 AM , Kovács István 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: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: How to include DOCTYPE?

Posted by Robert Zeigler <ro...@scazdl.org>.
Pretty sure this isn't supported yet.
See: http://tapestry.apache.org/tapestry5/tapestry-core/guide/dom.html
Under "Dom Classes", Document, there's a "todo" that includes doctype  
support.

Robert

On Mar 14, 2007, at 3/1410:46 AM , Kovács István 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: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org


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