You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Daniel Gredler (JIRA)" <ta...@jakarta.apache.org> on 2007/02/22 23:36:05 UTC

[jira] Commented: (TAPESTRY-1264) Can't specify DOCTYPE in template

    [ https://issues.apache.org/jira/browse/TAPESTRY-1264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12475186 ] 

Daniel Gredler commented on TAPESTRY-1264:
------------------------------------------

As Howard mentions on the wiki [http://tapestry.apache.org/tapestry5/tap5devwiki.html#ComponentTemplates], the HTML DTDs aren't valid XML DTDs, causing problems for XML parsers [http://www.thescripts.com/forum/thread88141.html].

The alternative is to use an XHTML DTD. However, many people recommend not using XHTML if you want to remain standards-compliant [http://hsivonen.iki.fi/doctype/] [http://annevankesteren.nl/2004/06/invalid-html]. HTML 4 Strict is definitely the path of least resistance for standards-compliance...

Of course if you can't use HTML DTDs in the template DOCTYPEs, but users want to use HTML entities (&nbsp; &copy; &gt; etc) then T5 users might find themselves in the position of having to declare their templates to be XHTML documents, but configuring T5 to serve up HTML documents. Blah.

> Can't specify DOCTYPE in template
> ---------------------------------
>
>                 Key: TAPESTRY-1264
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1264
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 5.0
>            Reporter: Daniel Gredler
>             Fix For: 5.0
>
>
> DOCTYPEs specified in T5 templates either cause exceptions to be thrown, or are not output into the final HTML, depending on the DOCTYPE used. The DOCTYPES need to be configurable somewhere, preferrably in the template itself, just like T4.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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