Normalizing Attribute Values

As the four-part list suggests, this is actually a bit on the tricky side. But it's another area where all the tricky bits have been assigned to the XML Processor so as to make the application's life easier.

Attribute values are normally short and simple, except when they're not. The idea here is that you can generate XML that looks like this:

<!ENTITY home ''>
<El At="
found at

Then all the application will see for that attribute value is

found at

Back-link to spec

Copyright © 1998, Tim Bray. All rights reserved.