To validate an XSL file:
You can set up a project's properties so that different types of project resources are automatically validated when you save them. From a project's pop-up menu click Properties > Validation. Any validators you can run against your project are listed in the Validation page.