[thelist] xhtml validation problem

Jens Brueckmann lists at j-a-b.net
Wed Feb 23 11:02:18 CST 2005


On Wed, 23 Feb 2005 08:24:51 -0800, Timothy Kuhn (CW)  
<tkuhn-cw at starbucks.com> wrote:

> I have copied and pasted the declaration directly off the W3C site,which  
> is what makes it all that much more intriguing.

Could you please post the page you got this information from?

> Here is the doctype that I am using:
> <!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en"
>     "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">

This is wrong

> And here is the error:
> Invalid formal public identifier "-//w3c//dtd xhtml 1.0
> transitional//en" : invalid public text class.
> ...type html public "-//w3c//dtd xhtml 1.0 transitional//en"  and the
> quotes after the en are underlined.

The PUBLIC and SYSTEM identifiers are case sensitive. Have a look at what  
the DTD[1] says:

|  This DTD module is identified by the PUBLIC and SYSTEM identifiers:
|
|   PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|   SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"

For a list of valid DTDs see  
http://www.w3.org/QA/2002/04/valid-dtd-list.html

Cheers,

jens


[1] http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
-- 
Jens Brueckmann
http://www.j-a-b.net/


More information about the thelist mailing list