Exercise 8

Create an XSLT stylesheet that displays quantitative information about the file "collection.xml". Transform the XML file into an HTML web page that contains three sentenedes:

<p>The collection contains 20 letters.</p>
<p>12 of these have been written before 1900.</p>
<p>The collection contains 6 letters in English.</p>

These number should not be typed in manually; they must be calculated by the stylesheet, using the count() function.

Answers