For completeness, here is my Layout:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";
xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
    <head>
        <meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
        <link rel="shortcut icon" href="favicon.ico" />
        <title>${title}</title>
    </head>
    <body>
        <div id="container">
            <t:branding />
            <t:heading />
            <t:body />
            <t:copyright />
        </div>
    </body>
</html>

I get errors in Eclipse (which can be ignored - but I don't like red
crosses in my IDE) at:

- The already mentioned:
Attribute "xmlns:t" must be declared for element type "html".

- and at '<div id="container">'
The content of element type "div" must match "(p|h1|h2|h3|h4|h5|h6|div|
ul|ol|dl|pre|hr|blockquote|address|fieldset|table|form|a|br|span|bdo|
object|img|map|tt|i|b|big|small|em|strong|dfn|code|q|sub|sup|samp|kbd|
var|cite|abbr|acronym|input|select|textarea|label|button|ins|del|script|
noscript)".

Any idea?
-J.

On Mon, 2008-04-14 at 14:44 +0200, Jan Vissers wrote:
> Thanks - I already did this.
> I'm now able to edit .tml files as if they were .xml files - which is
> just what I like. However when I add:
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> 
> to the top of my Layout.tml Eclipse complains about:
> 
> Attribute "xmlns:t" must be declared for element type "html".
> 
> which shows up as a 'Problem' in my 'Problems' view.
> How to get rid of that? 
> 
> -J.
> 
> On Mon, 2008-04-14 at 15:20 +0300, Peter Stavrinides wrote:
> > This is not hard to fix, you need to add a configuration for tml files 
> > in properties/editors/file associations, if I recall you need to 
> > associate the extension with the html editor.
> > 
> > Jan Vissers wrote:
> > > Hi,
> > >
> > > I know this is probably a small concern - but I don't like the red error
> > > indicators in Eclipse. They popup whenever I have a .tml file. It says:
> > >
> > > Attribute "xmlns:t" must be declared for element type "html".
> > >
> > > Is there any way to suppress this error?
> > >
> > > -J.
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >   
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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

Reply via email to