Re[2]: [xml] non-quoted attributes invalid?

Date view Thread view Subject view Author view

From: Stefan Bambach (bambach@triplex.de)
Date: Mon Nov 29 1999 - 04:08:50 EST


Hi Daniel,

Monday, November 29, 1999, 9:59:05 AM, you wrote:

DV> On Sun, Nov 28, 1999 at 03:03:42PM -0500, Bryan E. Chafy wrote:
>>
>> My xml file has some attributes without quotes:
>>
>> <?xml version="1.0"?>
>> <!DOCTYPE client SYSTEM "client.dtd">
>> <image href="img.gif" HEIGHT=0 WIDTH=22/>
>>
>> When I try to parse, I get:
>>
>> test.xml:3: error: AttValue: " or ' expected
>> <image href="img.gif" HEIGHT=0 WIDTH=22/>

DV> Your XML is broken, you have to quote attributes !
DV> http://www.w3.org/TR/REC-xml#NT-AttValue

DV> [10] AttValue ::= '"' ([^<&"] | Reference)* '"' |
DV> "'" ([^<&'] | Reference)* "'"

DV> Don't even try to bypass the error message, no XML parser will ever
DV> return some data on such an input, this is not Well Formed XML.

>> Also, why is libxml called the xml library for gnome? What's so
>> gnome about it? It looks like a generic XML DOM/SAX parser usefull for
>> things other than just gnome.

DV> It was largely developped in the Gnome framework, is used by quite
DV> a few Gnome apps, but I agree you can perfectly use it without gnome.
DV> For example it doesn't depend on any Gnome lib, and should even work
DV> on Windows.

DV> Daniel

try this:
 <image href="img.gif" HEIGHT="0" WIDTH="22"/>

ciao. Stefan

-----------------------------------------------------------------------
Stefan Bambach

triplex - agentur für neue medien GmbH
Erhardtstr. 8
80469 München

Tel: +49 89 209138-29
Fax: +49 89 209138-10
mailto:bambach@triplex.de
http://www.triplex.de
-----------------------------------------------------------------------

----
Message from the list xml@rufus.w3.org
Archived at : http://rufus.w3.org/veillard/XML/messages
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rufus.w3.org


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:29:53 EDT