External Entities
Recall that when an entity is used, it's a substitution. The entity is essentially a placeholder, being replaced by the assigned value when the processing is done.
The ENTITY keyword can also be applied to an external binary item, such as an image file, and is still a type of substitution. However, it's no longer a simple one because the file cannot be placed directly into the reference location. The system needs to be told which program should be used to display the file's contents.
Suppose that the image file MyImage.gif is to be included in your DTD. Since it cannot be directly viewed, something else must be used to display it. In the following line, IMAGE1 is the name of the ENTITY, so you can use it in your files as a ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access