That's annoying. I actually do have an "html" tag just like you suggest, but
my emailer apparently stripped it from the message. I'll try again but use a
character entity for the left angle bracket of the open "html" tag. Here's my
Layout.tml file, which Eclipse says is bad XML. It's the "xmlns:t" in the
"html" open tag that Eclipse complains about ("Attribute "xmlns:t" must be
declared for element type "html""):
<?xml version="1.0" encoding="UTF-8" ?>
<!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>${message:page-title}</title>
</head>
<body>
<t:body/>
</body>
</html>
----- Original Message ----
From: Josh Canfield <[EMAIL PROTECTED]>
To: Tapestry users <[email protected]>
Sent: Thursday, January 24, 2008 3:17:45 PM
Subject: Re: T5: Eclipse unhappy with TML file that has DOCTYPE
I believe you just need to add the namespace to an outer element...
for instance in a page you might have
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
Josh
On Jan 24, 2008 2:35 PM, Franz Amador <[EMAIL PROTECTED]> wrote:
> I'm hoping someone can tell me how to configure Eclipse so it doesn't
> complain about the "t:" items in a .tml file that has a DOCTYPE. For
> example, this file (Start.tml):
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
>
>
> <head>
> <title>${message:page-title}</title>
> </head>
> <body>
> <h1>${message:page-title}</h1>
> <a t:type="actionlink" t:id="logout">Logout</a>
> </body>
> </html>
>
> If I remove the DOCTYPE block, Eclipse is happy (properly speaking,
> Eclipse's XML editor), but when I add it, I get complaints about all
the
> "t:" entries. The "xmlns:t" attribute, for example, gets this
complaint:
>
> Attribute "xmlns:t" must be declared for element type "html".
>
> Do other people see this? Is there actually something wrong with the
> file, or do I have Eclipse misconfigured? Thanks!
>
>
>
--
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.