xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fo...@locus.apache.org
Subject cvs commit: xml-site/sources/fop running.xml
Date Sat, 11 Dec 1999 14:02:11 GMT
fotis       99/12/11 06:02:11

  Modified:    sources/fop running.xml
  Log:
  fixed examples which already use xerces-j as standard sax parser
  
  Revision  Changes    Path
  1.2       +18 -15    xml-site/sources/fop/running.xml
  
  Index: running.xml
  ===================================================================
  RCS file: /home/cvs/xml-site/sources/fop/running.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- running.xml	1999/12/10 12:51:38	1.1
  +++ running.xml	1999/12/11 14:02:11	1.2
  @@ -29,19 +29,23 @@
       <s3 title="Method One">
         <p>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 and your XML Parser in your classpath and so you might invoke 
  +         formatting object file name and PDF filename as arguments. You need to set classpath

  +         and set the used sax parser according to your enviroment
         </p>
  -      <p><code>java -cp fop_x_xx_x.jar;xerces.jar</code></p>
  +      <p>Classpath settings: You will need to include FOP and your XML Parser 
  +         in your classpath and so you might invoke FOP, if XP is your sax parser 
  +         and Xerces-J your DOM parser: 
  +      </p>
  +      <p><code>java -cp fop_bin_0_12_0.jar;xp.jar;xerces.jar </code></p>
  +      <p><code>org.apache.fop.apps.CommandLine fo-file pdf-file</code></p>
  +      <p>For historical reasons the standard sax parser for FOP is XP from James
Clark. 
  +         This will change in the future to Xerces-J, but at the moment you will need to
set the property 
  +         org.xml.sax.parser to any other SAX Parser class to use. The following example
shows 
  +         the command line, if you use Xerces-J: 
  +      </p>
  +      <p><code>java -Dorg.xml.sax.parser=org.apache.xerces.parsers.SAXParser</code></p>
  +      <p><code>-cp fop_bin_0_12_0.jar;xerces.jar</code></p>
         <p><code>org.apache.fop.apps.CommandLine fo-file pdf-file</code></p>
  -      <p>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 XP, the XML parser from James Clark: 
  -      </p>
  -      <p><code>java -Dorg.xml.sax.parser=com.jclark.xml.sax.Driver</code></p>
  -      <p><code>-cp fop_x_xx_x.jar;sax.jar;xt.jar;xp.jar;xerces.jar</code></p>
  -      <p><code>org.apache.fop.apps.AWTCommandLine formatting-tree-file pdf-file</code></p>
  -      <p>(You have to include xerces.jar or another xml parser which supports DOM
in your classpath.) </p>
       </s3>
       <s3 title="Method Two">
         <p>Rather than performing transformation with an XSLT before invoking FOP,
it is 
  @@ -51,10 +55,9 @@
            need to include FOP, SAX, your SAX Parser and XT in your classpath and so you
might 
            invoke 
         </p>
  -      <p><code>java -Dorg.xml.sax.parser=com.jclark.xml.sax.Driver</code></p>
  -      <p><code>-cp fop_x_xx_x.jar;xt.jar;xerces.jar</code></p>
  +      <p><code>java -cp fop_bin_0_12_0.jar;xt.jar;xp.jar;xerces.jar</code></p>
         <p><code>org.apache.fop.apps.CommandLine xml-file xsl-file pdf-file</code></p>
  -      <p>Again, if your SAX Parser is other than Xerces, you will need to set the
property
  +      <p>Again, if your SAX Parser is other than XP, you will need to set the property
            org.xml.sax.parser to the SAX Parser class to use.
         </p>
       </s3>
  @@ -63,7 +66,7 @@
            transformation without using any pdf viewer by invoking FOP with the viewer 
            application. You will need to include FOP and your XML Parser in your classpath

         </p>
  -      <p><code>java -cp fop_x_xx_x.jar;xerces.jar</code></p>
  +      <p><code>java -cp fop_bin_0_12_0.jar;xp.jar;xerces.jar</code></p>
         <p><code>org.apache.fop.apps.AWTCommandLine fo-file </code></p>
         <p>The viewer uses the swing classes.</p> 
         <p>Note: If you are using java 2 or later (i.e. jdk 1.2. or later) you can
put all 
  
  
  

Mime
View raw message