I'm using this, but I don't have the
        <?xml version="1.0" encoding="UTF-8" ?>
line at the top

        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
        <t:layout.border
xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
        stuff here
        </t:layout.border>

Works fine for me in Eclipse 3.2.1 with WST/WTP

On Jan 25, 2008 8:32 PM, Geoff Callender
<[EMAIL PROTECTED]> wrote:
> Weird.  That's exactly what I use and it's fine (Eclipse 3.2.2, tml
> files opened with HTML editor, with WST feature (Web Standard Tools)
> project 1.5.4).
>
>
> On 26/01/2008, at 3:49 AM, Franz Amador wrote:
>
> > 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 <users@tapestry.apache.org>
> > 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.
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> 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