aboutsummaryrefslogtreecommitdiffstats
path: root/docs/xml-docs/fop
diff options
context:
space:
mode:
authorKeiron Liddle <keiron@apache.org>2001-06-28 09:55:11 +0000
committerKeiron Liddle <keiron@apache.org>2001-06-28 09:55:11 +0000
commitdc4ed88c3a64ae730213b87a586d5139aba61539 (patch)
tree26626cce033077715d215437d7fb792b93608749 /docs/xml-docs/fop
parent4fe88f283da9312485d44c9112b01db5b4f5453f (diff)
downloadxmlgraphics-fop-dc4ed88c3a64ae730213b87a586d5139aba61539.tar.gz
xmlgraphics-fop-dc4ed88c3a64ae730213b87a586d5139aba61539.zip
added info about using xslt input handler
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194322 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/xml-docs/fop')
-rw-r--r--docs/xml-docs/fop/embedding.xml13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/xml-docs/fop/embedding.xml b/docs/xml-docs/fop/embedding.xml
index 5f6e46f94..c74ba2bdf 100644
--- a/docs/xml-docs/fop/embedding.xml
+++ b/docs/xml-docs/fop/embedding.xml
@@ -50,6 +50,19 @@
driver.setOutputStream(new FileOutputStream(args[1]));
driver.render();
]]></source>
+ <p>You can also specify an xml and xsl file for the input.
+ </p>
+ <p>Here is an example use of Driver with the XSLTInputHandler:</p>
+ <source><![CDATA[
+ Driver driver = new Driver();
+ driver.setRenderer(Driver.RENDER_PDF);
+ InputHandler inputHandler = new XSLTInputHandler(xmlFile, xslFile);
+ XMLReader parser = inputHandler.getParser();
+ driver.buildFOTree(parser, inputHandler);
+ driver.format();
+ driver.setOutputStream(new FileOutputStream(outFile));
+ driver.render();
+]]></source>
<p>Have a look at the classes CommandLineStarter or FopServlet for complete examples.</p>
</s2>
<s2 title="Using Fop in a servlet">