Usually this kind of error doesn't appear for bad formatted XSLT file or for the syntax errors.
This is because of availability of XSLT file. Make sure that you have specified file name correctly. Try to access the file path you have specified from explorer or browser (This validates filepath as well as filename) .. Also file extension should be same as what you have specified. If you specify as *.xsl
and actual file is *.xslt
then it is not accessible.