Re: Error: missing quote mark for attribute value

I would suggest escaping the angle brackets and quotes (< > ") 
for XML embedded within attribute values.  Although in a pure XML parser, 
this should not be necessary.  In an SGML-aware parser it is.  In 
particular, Tidy will detect missing end quotes on attribute 
values!  Escaping the embedded markup should hide it from Tidy.

Any application code (Javascript?) that is accessing the value of this 
attribute _should_ still receive the same text. Let us know how it goes.  I 
am curious.

take it easy,
Charlie


At 04:09 PM 2/17/2003 +0100, Marco Zuiderwijk wrote:
>Hello,
>
>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. I have tried several options, 
>but cannot get it right. Does anybody know how to handle this?
>
>Regards,
>Marco

Received on Monday, 17 February 2003 11:39:33 UTC