W3C home > Mailing lists > Public > www-amaya@w3.org > July to September 2003

Re: XML parsing error

From: Christoph Schneegans <Christoph@Schneegans.de>
Date: Fri, 11 Jul 2003 18:45:07 GMT
To: <www-amaya@w3.org>
Message-ID: <ben7ki.3es.1@mail.christoph.schneegans.de>

John Russell wrote:

> <img src="foobar.gif"alt="special picture" />

This fragment is indeed not well-formed, there must be whitespace before
"alt", cf. <http://www.w3.org/TR/REC-xml#NT-STag> and
<http://www.w3.org/TR/REC-xml#NT-EmptyElemTag>. The W3C validator has some
limitations concerning XML, cf. <http://openjade.sourceforge.net/doc/xml.htm>,
so it's probably a bad idea to use it for XHTML validation. XML schema
validators work much better, e.g. try
<http://www.w3.org/2001/03/webdata/xsv?docAddrs=http://www.example.org/+http://www.w3.org/2002/08/xhtml/xhtml1-strict.xsd&style=offline>.
Additional XHTML schemas are available at <http://www.w3.org/TR/xhtml1-schema/>.

-- 
<http://schneegans.de/>
Received on Friday, 11 July 2003 14:46:21 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 April 2014 11:01:40 UTC