
XML and XSL can help because it enables me to write the document in one
format (XML) and automatically create distribution copies in text and
HTML.
Furthermore, because styling is applied automatically, it is easy to change
the layout of the Web site: Just change the style sheet. As Web fashion
keeps changing, this is a major advantage.
Viewing XML in a Browser
Listing 5.1 is an abbreviated version of the January 1999 article that dis-
cussed XML style sheets. The structure of the document is in Figure 5.2
(essentially an article is a set of sections). Figures 5.3 and 5.4 view the doc-
ument in Internet Explorer 5.0.
Listing 5.1: An Article in XML
<?xml ...