W3C home > Mailing lists > Public > www-validator@w3.org > March 2005

Re: [VE][338] Error Message Feedback

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Thu, 3 Mar 2005 09:58:25 +0200 (EET)
To: Radu Martin <radum@rax.ro>
Cc: www-validator@w3.org
Message-ID: <Pine.GSO.4.58.0503030940470.17069@korppi.cs.tut.fi>

On Wed, 2 Mar 2005, Radu Martin wrote:

> Line 30, column 4: cannot generate system identifier for general entity "nbsp"
>
> &nbsp;

Since &nbsp; is defined in all published versions of HTML, the odds are
that you are using a DTD that differs from the HTML specifications.
Perhaps it's an XML DTD? In that case, you cannot use entities without
declaring them (except for the few entities that are predefined in XML).

For example, you could copy the file
http://www.w3.org/TR/html4/HTMLlat1.ent
for you under the name "HTMLlat1.ent" and use

<!ENTITY % HTMLlat1 PUBLIC
   "-//W3C//ENTITIES Latin1//EN//HTML"
   "HTMLlat1.ent">

in your DTD. This would make the entities for ISO Latin 1 characters
(including the no-break space) available as in HTML 4.

If problems remain, please post a URL.

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
Received on Thursday, 3 March 2005 07:58:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:18 GMT