wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes XML to HTML Conversion using JAX-P, XSLT Processor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML to HTML Conversion using JAX-P, XSLT Processor" Watch "XML to HTML Conversion using JAX-P, XSLT Processor" New topic
Author

XML to HTML Conversion using JAX-P, XSLT Processor

Raja Mirrah
Greenhorn

Joined: Jun 23, 2009
Posts: 26
Hi All,
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,

ERROR: 'null'
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)
at CiscoTranslator.main(CiscoTranslator.java:34)



Can anyone please help me in resolving this issue?

Your early response is highly appreciated.

Thanks,
Raj


Warm Regards,
Raj
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XML to HTML Conversion using JAX-P, XSLT Processor
 
Similar Threads
Ignoring ParsingExceptions for quotes
Retrieve objects from XSL transform
java xslt & output xml files
Java XML parser to parse the XML file
Passing Files in Web Services