This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
XML to HTML Conversion using JAX-P, XSLT Processor
posted 5 years ago
I am trying to convert an xml to text and print it in an Standard Output using XSL,
I have an input xml file and xsl file and i am using jax-p api ,
Here is the code
I am getting the following error when i ran it,
FATAL ERROR: 'Could not compile stylesheet'
Exception in thread "main" javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(Unknown Source)
Can anyone please help me in resolving this issue?