From 8010cc2d230136e31cf838c4b2fc74ba712ce2c0 Mon Sep 17 00:00:00 2001
From: William Victor Mote If you want FOP to be totally silent you can also set an org.apache.avalon.framework.logger.NullLogger instance. If you want to use yet another logging facility you simply have to create a class that implements org.apache.avalon.framework.logging.Logger
and set it on the Driver object. See the existing implementations in Avalon Framework for examples.
-You can supply your input to FOP from a variety of data sources.
+ The input XSL-FO document is always handled internally as SAX (see the Parsing Design Document for the rationale).
+However, the input itself can be provided in a variety of ways to FOP, which normalizes the input (if necessary) into SAX events: There are a variety of upstream data manipulations possible.
For example, you may have a DOM and an XSL stylesheet; or you may want to
set variables in the stylesheet.
-
+
+ FOTreeBuilder
is the SAX Handler which is obtained through getContentHandler
on Driver
.render(Document)
method on Driver
.Driver
can take an InputSource
as input.
+This can use a Stream
, String
etc.XSLTInputHandler
is used as an InputSource
in the render(XMLReader
, InputSource
) method on Driver
.
-You can use the content handler from the driver to create a SAXResult. -The transformer then can fire SAX events on the content handler which -will in turn create the rendered output. -
--Examples showing this can be found at the bott +See the Examples for some variations on input.
+-- cgit v1.2.3