Tuesday, January 22, 2013

SAXON: Failed to compile stylesheet. 1 error detected.


What would be a reason to come across this issue ? There are several..

Tue Jan 22 17:10:38 IST 2013
Failed to compile stylesheet. 1 error detected.

javax.xml.transform.TransformerConfigurationException: Failed to compile stylesheet. 1 error detected.
at net.sf.saxon.PreparedStylesheet.prepare(PreparedStylesheet.java:176)
at net.sf.saxon.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:139)
at net.sf.saxon.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:91)
at com.kony.sync.offlineservices.util.TransformUtil.transform(TransformUtil.java:35)
at com.kony.sync.ide.actions.GenerateOfflineServicesAction$GenerateOfflineServicesJob.run(GenerateOfflineServicesAction.java:105)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)


Since, I don't have log for what had happened internally it was very difficult to figure it out the actual cause by looking at the above issue.

Finally, i figure it out that it was because of '*.xslt' does not exist in the specified location.

Other reasons from various sources:
http://zvon.org/xxl/XSLTutorial/Output/example11_ch15.html






No comments:

Post a Comment