From: fotis FOP is the world's first print formatter driven by XSL formatting
objects. It is a Java 1.1 application that reads a formatting object
@@ -51,7 +53,11 @@ Usage of attributes:
If you use Java 1.1.x you must also seperately include the swing classes, which can
+ be found at the
+ Sun website. From Java 1.2 on (aka Java 2) they are part of the standard
+ distribution.
+ Following software must be installed: a) Java 1.1.x or later For the fo-file viewer mode of FOP (see below) you must have the swing classes installed.
+ From Java 1.2 on (aka Java 2) they are part of the standard java distribution.
+ If you use Java 1.1.x you must seperately include the swing classes, which can
+ be found at the
+ Sun website.
+ b) An XML parser which supports SAX and DOM like
Xerces-J. c) If you have to produce the flow objects files, which are the input for FOP,
@@ -104,8 +116,8 @@ Usage of attributes:
There are three ways of running FOP from the command line. a) Batch processing formatting object files: There are three ways to run FOP from the command line. a) Batch processing formatting objects (fo) files: java org.apache.fop.apps.CommandLine fo-file pdf-file b) Batch processing xml files (includes production of the fo-files): java org.apache.fop.apps.CommandLine xml-file xsl-file pdf-file One is to first use an XSLT engine to produce the formatting object tree as an
XML document and then running the class org.apache.fop.apps.CommandLine with the
formatting object file name and PDF filename as arguments. You will need to include
- FOP, SAX and your SAX Parser in your classpath and so you might invoke
+ FOP and your XML Parser in your classpath and so you might invoke
java -cp fop_x_xx_x.jar;sax.jar;xp.jar org.apache.fop.apps.CommandLine formatting-tree-file pdf-file If your SAX Parser is other than XP, you will need to set the property
+ java -cp fop_x_xx_x.jar;xerces.jar org.apache.fop.apps.CommandLine fo-file pdf-file If your SAX Parser is other than Xerces, you will need to set the property
org.xml.sax.parser to the SAX Parser class to use. The following example shows
- the command line, if you use Xerces, the xml parser from xml.apache.org:
+ the command line, if you use XP, the XML parser from James Clark:
java -Dorg.xml.sax.parser=org.apache.xerces.parsers.SAXParser -cp fop_x_xx_x.jar;xerces.jar java -Dorg.xml.sax.parser=com.jclark.xml.sax.Driver -cp fop_x_xx_x.jar;sax.jar;xt.jar;xp.jar;xerces.jar org.apache.fop.apps.AWTCommandLine formatting-tree-file pdf-file (You have to include xerces.jar or another xml parser which supports DOM in your classpath.)
java -cp fop_x_xx_x.jar;sax.jar;xp.jar;xt.jar
+java -Dorg.xml.sax.parser=com.jclark.xml.sax.Driver
+-cp fop_x_xx_x.jar;xt.jar;xerces.jar
org.apache.fop.apps.CommandLine xml-file xsl-file pdf-file
-Again, if your SAX Parser is other than XP, you will need to set the property +
Again, if your SAX Parser is other than Xerces, you will need to set the property org.xml.sax.parser to the SAX Parser class to use.
@@ -149,9 +163,11 @@ Usage of attributes:If you already produced the FO file, you can preview the results of your transformation without using any pdf viewer by invoking FOP with the viewer - application. You will need to include FOP, SAX and your SAX Parser in your classpath + application. You will need to include FOP and your XML Parser in your classpath
-java org.apache.fop.apps.AWTCommandLine formatting-tree-file
+java -cp fop_x_xx_x.jar;xerces.jar
+org.apache.fop.apps.AWTCommandLine fo-file
+The viewer uses the swing classes.
Note: If you are using java 2 or later (i.e. jdk 1.2. or later) you can put all needed jar files into the subdirectory jdk1.2.x\jre\lib\ext (windows example). Then FOP can be started without classpath: @@ -159,6 +175,14 @@ Usage of attributes:
java org.apache.fop.apps.CommandLine fo-file pdf-file
+If you have problems running FOP, please have a look at the + FOP FAQ. If you don't find a solution there, + you can ask for help on the list fop-dev@xml.apache.org. Maybe it's bug and + maybe somebody is already working on it. +
+Also see STATUS for what is being worked on.
root
layout-master-set
@@ -197,11 +221,11 @@ Usage of attributes:table-body (minimal support)
table-row (minimal support)
table-cell (minimal support)
- -end-indent
page-master-name
@@ -255,6 +279,26 @@ Usage of attributes:see STATUS file
+ + +1. Subscribe to fop-dev@xml.apache.org by sending an email + to fop-dev-subscribe@xml.apache.org
+2. Read the archives to fop-dev to get an idea of the issues being + discussed.
+3. Subscribe to fop-cvs@xml.apache.org by sending an email to + fop-cvs-subscribe@xml.apache.org (it is important + that you follow changes being made).
+4. Try :-) to wrap your head around the XSL working draft.
+5. Get CVS working on your system.
+6. Ask, on fop-dev, any questions you have at all about the code, design, etc.
+7. When you feel comfortable modifying the code, send diffs to + fop-dev with your contributions.
+8. Have fun!
+XML Recommendation
XSL-FO Working Draft
-XSLT Recommandation
+XSLT Recommendation
PDF Documentation
Simple API for XML (SAX)
Document Object Model (DOM)