Datasheet

Figure 1-2: XSL can be used to apply templates to XML documents.
The HTML equivalent of XSL is cascading style sheets (CSS).
Creating and Displaying a
Simple XML Document
Following is a sample XML document. The only required predefined tag is on the first line, which
describes that the version of the XML parser used is version 1.0:
<?xmlversion=”1.0”?>
<WeatherForecast date=”2/1/2004”>
<city>
<name>Frankfurt</name>
<temperature>
<min>43</min>
<max>52</max>
</temperature>
</city>
<city>
<name>London</name>
<temperature>
<min>31</min>
<max>45</max>
</temperature>
</city>
<city>
<name>Paris</name>
<temperature>
<min>620</min>
<max>74</max>
</temperature>
</city>
</WeatherForecast>
4
Chapter 1
04_791202 ch01.qxp 10/6/06 10:59 AM Page 4