DTD location

The declarations that comprise the DTD may be stored at the top of each document that must conform to the model it creates. Alternatively, and more usually, they may be stored in a separate data file, referred to by a special instruction at the top of each document. Finally, there may be good reason to split the declarations between these two locations. Some declarations are then stored within the document, where they are described as the internal subset of the DTD. The remaining declarations, stored in a separate data file, are described as the external subset of the DTD.

When an external subset applies to many documents, each document ...

Get XML Companion, The, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.