W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2003

Re: Error: missing quote mark for attribute value

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Tue, 18 Feb 2003 03:49:20 +0100
To: <M.Zuiderwijk@priva.nl>
Cc: <html-tidy@w3.org>
Message-ID: <3e6e95d9.184556708@smtp.bjoern.hoehrmann.de>

* Marco Zuiderwijk wrote:
>I have an HTML file which contains object parameters containing XML
>(example:
><PARAM NAME="Address" VALUE='<address
>><info><name>text</name></info><objects type="Location" ><object><index>Idx
>20</index></object></objects></address>'>). When I call tidy to convert this
>file to XHTML I got the error "missing quote mark for attribute value on the
>line containing the XML parameter.

Tidy counts the number of newlines, < and > characters in attribute
values and reports the mentioned error if the value includes a `<`,
the number of [\n<>] is greater than 10 and the user didn't specify
`--literal-attributes yes`. This is done to detect improperly quoted
attributes.

>I have tried several options, but cannot
>get it right. Does anybody know how to handle this?

Use `--force-output yes` or `--literal-attributes yes`.
Received on Monday, 17 February 2003 21:48:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:53 GMT