Is there an way through which I can validate whether an given XSL is valid
or not programitically.
You should look into the documentation for the XSLT processor you are using.
For instance if you use a JAXP compliant XSLT processor then you can just
create a Transformer from your stylesheet. If this succeeds then it is
valid, otherwise you should be able to catch the errors in an ErrorListener
set on the TransformerFactory.
Best Regards,
George
-------------------------------------------------------------
George Cristian Bina mailto:george(_at_)oxygenxml(_dot_)com
<oXygen/> XML Editor - http://www.oxygenxml.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list