20.2. Annotated Sample Documents
These examples are intended as a mnemonic aid for XML syntax and as a quick map from a specific instance of an XML language construct to its corresponding XML syntax reference section. The sample document and DTD incorporate features defined in the XML 1.0 and Namespaces in XML recommendations.
The sample XML application describes the construction of a piece of furniture. Within the figures, each distinct language construct is enclosed in a box, with the relevant reference section name provided as a callout. By locating a construct in the sample, then locating the associated reference section, you can quickly recognize and learn about unfamiliar XML syntax. Four files make up this sample application:
Figure 20-1. bookcase.xml
Figure 20-2. furniture.dtd
Figure 20-3. bookcase_ex.ent
Figure 20-4. parts_list.ent
Copyright © 2002 O'Reilly & Associates. All rights reserved.