
Figure 10.3: The result in a browser
321
Structured and Extensible
Figure 10.4: Application architecture
Lessons Learned
Most XML applications are similar to the phone list: There is one DTD that
fully specifies the document. There are one or more style sheets and poten-
tially other applications to process the document. The document is not
extended.
However, if the document is shared by different organizations, it may be
easier to adopt a more extensible approach, as illustrated by the price list
application.
Theoretically, it would have been possible to devise a common DTD to
accommodate the needs of all the merchants. In practice, however, this is a