
286 • XML & Related Technologies
<performance>
<player>Sourav Ganguly</player>
<runs>10000</runs>
<wickets>120</wickets>
</performance>
<performance>
<player>Virender Sehwag</player>
<runs>4000</runs>
<wickets>50</wickets>
</performance>
</cricket>
(a) Write condition2.xsl le mentioned above, which would
display player details only if they have scored more than
10,000 runs.
(b) Modify the same XSLT document to display the player
details only if a player has scored more than 1000 runs and
has also taken more than 100 wickets.
Solution
(a) Details of players scoring more than 10,000 runs
<?xml version=”1.0”?>
<xsl:stylesheet version=”1.0” xmlns:xsl=”http://www. ...