generating PDF with XML and XSL
843834Nov 6 2002 — edited Nov 7 2002
Hi, quick basic question...
I'm trying to generate pdf doc from xml with xsl.
I'm using following sample code from xml.apache.org
response.setContentType("application/pdf");
Driver driver =new Driver();
driver.setOutputStream(response.getOutputStream());
driver.setRenderer(Driver.RENDER_PDF);
Transformer transformer=TransformerFactory.newInstance()
.newTransformer(new StreamSource("foo.xsl"));
transformer.transform(xmlsource, new SAXResult(driver.getContentHandler()));
xmlSource is my regular xml that wants to be pdf.
is foo.xsl any regular xsl that I use to coonvert xml into html?
or is it some special xsl that is tailored for pdf.
Is this what is called xsl-fo?
Thanks
IL