Java Mailing List Archive

http://www.gg3721.com/

Home » users.tapestry »

Undeclared general entity

Paul Stanton

2010-06-07

Replies: Find Java Web Hosting

Author LoginPost Reply
in a previous post Thiago correctly explained the error 'Undeclared
general entity "nbsp"' resulting from a missing html xmlns declaration.

however I'm still having this problem when I declare an xhtml entity
within a page that uses a component to handle the layout, even if both
the layout component and the page tml's declare the xhtml xmlns.:

MyPage.tml:

<html t:type="baselayout" xmlns="http://www.w3.org/1999/xhtml"
xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
  &nbsp;
</html>

BaseLayout.tml:

<!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_1_0.xsd"
xmlns:p="tapestry:parameter">
  <t:body />
</html>

Also, another problem - if the &nbsp; is in BaseLayout.tml and not
MyPage.tml it renders without exception, however if I view source of the
rendered page, there is no &nbsp; instead the character it represents. I
would expect the browser to do this conversion, not the web application.

can someone fill me in?

Regards, p.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.