W3C home > Mailing lists > Public > www-validator@w3.org > July 2000

Re: XHTML bugs

From: Shane P. McCarron <shane@aptest.com>
Date: Wed, 12 Jul 2000 12:36:32 -0500
Message-ID: <396CACA0.A60220F3@aptest.com>
To: JakieChan <pete_a90@yahoo.com>
CC: www-validator@w3.org
JakieChan wrote:
> 
> Under 3.1.1 of the XHTML recomendation, it says you
> are allowed (encouraged even) to include an XML
> declaration. The validator doesn't agree.

I have successfully validated documents that use the xml declaration.

> The same example shows the !DOCUMENT entity with a
> relative URI:
> 
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
> Strict//EN" "DTD/xhtml1-strict.dtd">
> 
> The validator doesn't like that either.
> 
> It validates http://www.w3.org/TR/xhtml1/ so I guess
> this must be a bug when using the upload file service?

the xhtml1 draft does not use an xml declaration because of a horrible
bug in the Macintosh version 4.5 of Internet Explorer.  Newer documents
the HTML working group has produced do use xml declarations, and they
work fine with the validator.

As to the relative path problem, this is an issue that the working group
has struggled with.  The SYSTEM identifier for an DOCTYPE should point
to a DTD. However, if the PUBLIC portion is a well known FPI, the
validator will use its local copy of the DTD rather than trying to
follow the SYSTEM identifier.  So an uploaded or local document that
uses a SYSTEM identifier of "foo" but uses a W3C-defined FPI should
validate without error.  At least, that is how it works for me.

> 
> __________________________________________________
> Do You Yahoo!?
> Get Yahoo! Mail – Free email you can access from anywhere!
> http://mail.yahoo.com/

--
Shane P. McCarron                  phone: +1 763 786-8160
ApTest                               fax: +1 763 786-8180
                                  mobile: +1 612 799-6942
                                  e-mail: shane@aptest.com
Received on Wednesday, 12 July 2000 13:36:40 GMT

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