Entities in Attribute Values

David Schach davidsch at microsoft.com
Fri Jun 13 04:27:39 BST 1997

Because entity references are allowed inside ot attribute values, it is
not possible to store an unmodified URL with data in an attribute.  For
example, the following XML is not valid because the '&''s are not
escaped inside of SELF's HREF value.  

	<CHANNEL HREF="http://someserver/comics/">
	<TITLE>Daily Comics</TITLE>

	<!-- HEF's value is invalid in SELF because the &'s aren't
escaped as &amp; -->

n&dilbert=on&calvin=on&peanuts=on" />


This makes it inconvenient to store URL's in XML files.  Would it anyone
be interested in changing entity processing to fix this?

xml-dev: A list for W3C XML Developers
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To unsubscribe, send to majordomo at ic.ac.uk the following message;
unsubscribe xml-dev
List coordinator, Henry Rzepa (rzepa at ic.ac.uk)

More information about the Xml-dev mailing list