CSCI.4220 Network Programming
Fall, 2006, Lab 3 XSLT


This studio covers XSLT and XPath.

In the unlikely possibility that you have forgotten some of this material, the studio follows the w3schools tutorial pretty closely. The links are http://www.w3schools.com/xpath/default.asp and http://www.w3schools.com/xsl/default.asp

Download this xml program http://www.cs.rpi.edu/~ingallsr/Countries.xml

Create an XSL stylesheet and link it to the XML document This stylesheet should display the country data in an HTML table with these headings:

Country, Language, Population, Life Expectancy, Density
and the appropriate data for each country (Life Expectancy is all genders). The rows should be sorted in ascending order by Life Expectancy, and the life expectancy and population density data should be right justified. Density is population divided by area. This should be rounded to the nearest whole number (the Xpath division operator is div and XPath has a round function).