Hi, I need help to solve a problem with XSLTInputHadler and Driver class, working with fop 0.20.5 version.
I need to generate a pdf from a xslt source existing in my project and a xml source received as a parameter. I´m using this constructor method from XSLTInputHandler: XSLTInputHandler(org.xml.sax.InputSource xmlSource, org.xml.sax.InputSource xsltSource) My code is: String xmlParam = request.getParameter(XML_REQUEST_PARAM); StringReader str = new StringReader(xmlParam); InputSource in = new InputSource(str); FileReader fr_xsl = new FileReader(PATH_TO_XSL); InputSource in_xsl = new InputSource(fr_xsl); *** XSLTInputHandler input = new XSLTInputHandler(in, in_xsl); ByteArrayOutputStream out = new ByteArrayOutputStream(); Driver driver = new Driver(); driver.setLogger(log); driver.setRenderer(Driver.RENDER_PDF); driver.setOutputStream(out); driver.render(input.getParser(), input.getInputSource()); It throws a FopException in *** and the message is: javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: java.net.MalformedURLException What´s my problem? What i did wrong? is this a bad use from this constructor? Thanks, César. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
