Elements and attributes are primarily logical mechanisms. They enable authors to specify the logical meaning of document content. On the other hand, entities are primarily physical mechanisms. They enable authors to manipulate the physical structure of documents. As physical concepts, entities are interesting mostly to programmers. However, they do provide useful features for organizing XML documents, and you should have a high-level understanding of how they work. An entity associates an entity name with a fragment of content. Authors define entities with an "!ENTITY" declaration at the beginning of a document or DTD. There are four types of entities in XML, three that apply to documents and one that applies to DTDs.
Although XML documents and DTDs deliver significant benefits in exchanging information, it's only natural to want to enhance these capabilities even further. Much as with peeling an onion, addressing the most visible information exchange problem on the Internet reveals further possibilities for improvement. Chapter 3 introduces some of the new related standards that deliver such improvements. |