January 2003
Beginner to intermediate
1200 pages
23h 42m
English
As we've seen, you use general entity references in documents so that the XML processor will replace them with the entity they refer to. However, you can use general entities in only a limited way in DTDs—that is, you can use them to insert text that will itself be inserted into the document content, but you can't use them to work with the declarations themselves in the DTD.
To actually work with element and attribute declarations, you use parameter entities. Parameter entity references can be used only in the DTD. In fact, there's an additional restriction: Any parameter entity references that you use in any DTD declaration must appear only in the DTD's external subset (the external subset is the part of ...