From 8010cc2d230136e31cf838c4b2fc74ba712ce2c0 Mon Sep 17 00:00:00 2001 From: William Victor Mote Date: Thu, 24 Apr 2003 16:43:26 +0000 Subject: Normalize common contents between embedding.xml and design/parsing.xml. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196339 13f79535-47bb-0310-9956-ffa450edef68 --- src/documentation/content/xdocs/embedding.xml | 30 +++++++++++++-------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'src/documentation/content/xdocs/embedding.xml') diff --git a/src/documentation/content/xdocs/embedding.xml b/src/documentation/content/xdocs/embedding.xml index 56f51aa40..a71431e0c 100644 --- a/src/documentation/content/xdocs/embedding.xml +++ b/src/documentation/content/xdocs/embedding.xml @@ -149,28 +149,28 @@ issues should be fixed in the upcoming JDK 1.4

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.

- -
- Hints
- XML/XSL/DOM Inputs -

-You can supply your input to FOP from a variety of data sources. + Input 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:

+
    +
  • SAX Events through SAX Handler: FOTreeBuilder is the SAX Handler which is obtained through getContentHandler on Driver.
  • +
  • DOM (which is converted into SAX Events): The conversion of a DOM tree is done via the render(Document) method on Driver.
  • +
  • Data Source (which is parsed and converted into SAX Events): The Driver can take an InputSource as input. +This can use a Stream, String etc.
  • +
  • XML+XSLT Transformation (which is transformed using an XSLT Processor and the result is fired as SAX Events: XSLTInputHandler is used as an InputSource in the render(XMLReader, InputSource) method on Driver.
  • +
+

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. - -Xalan Basic Usage Patterns provides some interface documentation and cookbook solutions for such situations. -

+Interface documentation and some cookbook solutions to these situations are provided in Xalan Basic Usage Patterns.

-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.

+
+ Hints
Object reuse

-- cgit v1.2.3