From e363209c4d21f66f25116e7b625125a9d14fee01 Mon Sep 17 00:00:00 2001 From: William Victor Mote Date: Tue, 22 Apr 2003 06:12:51 +0000 Subject: [PATCH] Move content of design/understanding/index.xml to design/index.xml. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196317 13f79535-47bb-0310-9956-ffa450edef68 --- .../content/xdocs/design/book.xml | 3 - .../content/xdocs/design/index.xml | 46 +++++++++++++ .../xdocs/design/understanding/book.xml | 3 - .../xdocs/design/understanding/index.xml | 68 ------------------- 4 files changed, 46 insertions(+), 74 deletions(-) delete mode 100644 src/documentation/content/xdocs/design/understanding/index.xml diff --git a/src/documentation/content/xdocs/design/book.xml b/src/documentation/content/xdocs/design/book.xml index 686dd4338..5d1ffca75 100644 --- a/src/documentation/content/xdocs/design/book.xml +++ b/src/documentation/content/xdocs/design/book.xml @@ -23,9 +23,6 @@ understanding/book.xml, WHICH SEE FOR AN EXPLANATION. - - - diff --git a/src/documentation/content/xdocs/design/index.xml b/src/documentation/content/xdocs/design/index.xml index 4c0cf687c..ff22f14e8 100644 --- a/src/documentation/content/xdocs/design/index.xml +++ b/src/documentation/content/xdocs/design/index.xml @@ -11,6 +11,52 @@ The articles in this section pertain to the redesign or trunk line of development. The redesign is mainly focusing on parts of the layout process (converting the FO tree into the Area Tree). + + +
+ Introduction +
+ Overview +

FOP takes an xml file does its magic and then writes a document to a + stream.

+

xml -> [FOP] -> document

+

The document could be pdf, ps etc. or directed to a printer or the + screen. The principle remains the same. The xml document must be in the XSL:FO + format.

+

For convenience we provide a mechanism to handle XML+XSL as + input.

+

The xml document is always handled internally as SAX. The SAX events + are used to read the elements, attributes and text data of the FO document. + After the manipulation of the data the renderer writes out the pages in the + appropriate format. It may write as it goes, a page at a time or the whole + document at once. Once finished the document should contain all the data in the + chosen format ready for whatever use.

+
+
+ Stages +

The fo data goes through a few stages. Each piece + of data will generally go through the process in the same way but some + information may be used a number of times or in a different order. To reduce + memory one stage will start before the previous is completed.

+

SAX Handler -> FO Tree -> Layout Managers -> Area Tree + -> Render -> document

+

In the case of rtf, mif etc.
SAX Handler -> FO Tree -> + Structure Renderer -> document

+

The FO Tree is constructed from the xml document. It is an internal + representation of the xml document and it is like a DOM with some differences. + The Layout Managers use the FO Tree do their layout stuff and create an Area + Tree. The Area Tree is a representation of the final result. It is a + representation of a set of pages containing the text and other graphics. The + Area Tree is then given to a Renderer. The Renderer can read the Area Tree and + convert the information into the render format. For example the PDF Renderer + creates a PDF Document. For each page in the Area Tree the renderer creates a + PDF Page and places the contents of the page into the PDF Page. Once a PDF Page + is complete then it can be written to the output stream.

+

For the structure documents the Structure listener will read + directly from the FO Tree and create the document. These documents do not need + the layout process or the Area Tree.

+
+
Primary Design Goals

A discussion of project design properly begins with a list of the goals of the project. Out of these goals will flow the design issues and details, and eventually, the implementation.

diff --git a/src/documentation/content/xdocs/design/understanding/book.xml b/src/documentation/content/xdocs/design/understanding/book.xml index 8887d0803..576d556f2 100644 --- a/src/documentation/content/xdocs/design/understanding/book.xml +++ b/src/documentation/content/xdocs/design/understanding/book.xml @@ -27,9 +27,6 @@ PARENT DIRECTORY!
- - - diff --git a/src/documentation/content/xdocs/design/understanding/index.xml b/src/documentation/content/xdocs/design/understanding/index.xml deleted file mode 100644 index 7bf8aa822..000000000 --- a/src/documentation/content/xdocs/design/understanding/index.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - -
- Understanding FOP Design - Tutorial series about Design Approach to FOP -
- - -
- Introduction -

- Welcome to the understanding series. This will be - a series of notes for developers to understand how FOP - works. We will - attempt to clarify the processes involved to go from xml(fo) - to pdf or other formats. Some areas will get more - complicated as we proceed. -

- -
- Overview -

FOP takes an xml file does its magic and then writes a document to a - stream.

-

xml -> [FOP] -> document

-

The document could be pdf, ps etc. or directed to a printer or the - screen. The principle remains the same. The xml document must be in the XSL:FO - format.

-

For convenience we provide a mechanism to handle XML+XSL as - input.

-

The xml document is always handled internally as SAX. The SAX events - are used to read the elements, attributes and text data of the FO document. - After the manipulation of the data the renderer writes out the pages in the - appropriate format. It may write as it goes, a page at a time or the whole - document at once. Once finished the document should contain all the data in the - chosen format ready for whatever use.

-
-
- Stages -

The fo data goes through a few stages. Each piece - of data will generally go through the process in the same way but some - information may be used a number of times or in a different order. To reduce - memory one stage will start before the previous is completed.

-

SAX Handler -> FO Tree -> Layout Managers -> Area Tree - -> Render -> document

-

In the case of rtf, mif etc.
SAX Handler -> FO Tree -> - Structure Renderer -> document

-

The FO Tree is constructed from the xml document. It is an internal - representation of the xml document and it is like a DOM with some differences. - The Layout Managers use the FO Tree do their layout stuff and create an Area - Tree. The Area Tree is a representation of the final result. It is a - representation of a set of pages containing the text and other graphics. The - Area Tree is then given to a Renderer. The Renderer can read the Area Tree and - convert the information into the render format. For example the PDF Renderer - creates a PDF Document. For each page in the Area Tree the renderer creates a - PDF Page and places the contents of the page into the PDF Page. Once a PDF Page - is complete then it can be written to the output stream.

-

For the structure documents the Structure listener will read - directly from the FO Tree and create the document. These documents do not need - the layout process or the Area Tree.

-
- -
- -
- -- 2.39.5