XML World-Countries XSLT Exercises
XML World-Countries XSLT Exercises
Question 1
Return all countries with population between 9 and 10 million. Retain the structure of country elements from the original data.
Question 2
Create a table using HTML constructs that lists all countries that have more than 3 languages. Each row should contain the country name in bold, population, area, and number of languages. Sort the rows in descending order of number of languages. No header is needed for the table, but use to make it format nicely, should you choose to check your result in a browser. (Hint:You may find the data-type and order attributes of to be useful.)
Question 3
Create an alternate version of the countries database: for each country, include its name and population as sublements, and the number of languages and number of cities as attributes (called "languages" and "cities" respectively).
Don't be scared by the question. This is much easier that you think!
Σχόλια