Generating pdf from xml
Posted: Mon Dec 31, 2007 1:08 pm
Dear All,
I'm able to successfully generate a PDF from XML by setting up Transformation Scenario. It also allows me to configure XSLT & FO processors, specify custom fonts and extensions. I'm now working on stand alone Java program to replicate similar transformations by invoking Java XML API's but the program throws a runtime error saying:
ERROR: 'org/apache/avalon/framework/configuration/Configuration'
FATAL ERROR: 'Could not compile stylesheet'
EXCEPTION:
javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
I have been going through sample programs bundled with Xalan and FOP jars but not able to resolve this issue. Can someone please guide me how to do transformations uing Java?
Thanks.
I'm able to successfully generate a PDF from XML by setting up Transformation Scenario. It also allows me to configure XSLT & FO processors, specify custom fonts and extensions. I'm now working on stand alone Java program to replicate similar transformations by invoking Java XML API's but the program throws a runtime error saying:
ERROR: 'org/apache/avalon/framework/configuration/Configuration'
FATAL ERROR: 'Could not compile stylesheet'
EXCEPTION:
javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
I have been going through sample programs bundled with Xalan and FOP jars but not able to resolve this issue. Can someone please guide me how to do transformations uing Java?
Thanks.