W3C home > Mailing lists > Public > www-validator@w3.org > August 2002

Re: Character Entity Question

From: Thanasis Kinias <tkinias@optimalco.com>
Date: Thu, 8 Aug 2002 14:26:57 -0700
To: "R. Derek Pattison" <rderekp@laughing-coyote.com>
Cc: Terje Bless <link@pobox.com>, www-validator@w3.org
Message-ID: <20020808212657.GA18569@optimalco.com>

scripsit R. Derek Pattison:
> 
> Sure. I've used the &trade; at:
> http://www.laughing-coyote.com/ko/luc/photos.htm. It displays correctly no
> matter if I use the &trade; or &#8482; in IE 6, Netscape 6, Netscape 7,
> Opera 6, and Mozilla 1.0 on my Windows box, so I'm not too concerned right
> now about how it displays, I just want my pages to validate and to make sure
> I can use the Character Entity reference for my pages.

You've got no DOCTYPE declaration.  The DTD is where these entities are
defined, so since you don't reference a DTD the &trade; entity is
unknown.  In this case, the validator isn't even checking for validity
at all, only XML well-formedness.

Stick 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

in the second line, just after the <?xml ..., and watch your page
validate as beautiful XHTML 1.0 Strict.

(That's some nice looking code, BTW, not to mention the dog . . .)

-- 
Thanasis Kinias
Web Developer, Information Technology
Graduate Student, Department of History
Arizona State University
Tempe, Arizona, U.S.A.

Ash nazg durbatulūk, ash nazg gimbatul,
Ash nazg thrakatulūk agh burzum-ishi krimpatul
Received on Thursday, 8 August 2002 17:27:02 GMT

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