Re: Undeclared general entity

2010-06-08 Thread Josh Canfield
 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.:

Each of your .tml files is a complete xml file. When tapestry parses
your MyPage.tml there is no nbps entity reference defined. This is
generally found in http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
of your DOCTYPE declaration.

 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.

Tapestry uses an xml parser to read your .tml files. It resolves the
entity references for the encoding used to render your page. Is there
a reason you want them to be rendered as entity references?

Josh

On Mon, Jun 7, 2010 at 7:36 PM, Paul Stanton p...@mapshed.com.au wrote:
 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-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org





-- 
--
http://www.bodylabgym.com - a private, by appointment only, one-on-one
health and fitness facility.
--
http://www.ectransition.com - Quality Electronic Cigarettes at a
reasonable price!
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Undeclared general entity

2010-06-07 Thread Paul Stanton
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-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org