Open \xampp\php\php.ini file in your text editor and add the red xsl extension line only so it looks like this when added:
Save the file and restart Apache.
To check if it is now enabled go to:http://localhost/xampp/phpinfo.php
and find near the end the xsl entry.
Clear your browsers cache and try your script again.
Please let me know if it helped.