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/targets/fop running.html
Date Sat, 11 Dec 1999 14:03:05 GMT
fotis       99/12/11 06:03:05

  Modified:    targets/fop running.html
  Log:
  fixed examples which already use xerces-j as standard sax parser
  
  Revision  Changes    Path
  1.2       +18 -15    xml-site/targets/fop/running.html
  
  Index: running.html
  ===================================================================
  RCS file: /home/cvs/xml-site/targets/fop/running.html,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- running.html	1999/12/10 12:54:54	1.1
  +++ running.html	1999/12/11 14:03:05	1.2
  @@ -41,19 +41,23 @@
       <TABLE border="0" cellpadding="0" cellspacing="0" width="484"><TR><TD
bgcolor="666699" colspan="2" width="484"><TABLE border="0" cellpadding="0" cellspacing="0"
width="484"><TR><TD bgcolor="#039acc" height="1" width="1"><IMG border="0"
height="1" hspace="0" src="resources/void.gif" vspace="0" width="1"></TD><TD bgcolor="#039acc"
height="1" width="482"><IMG border="0" height="1" hspace="0" src="resources/void.gif"
vspace="0" width="482"></TD><TD bgcolor="#0086b2" height="1" width="1"><IMG
border="0" height="1" hspace="0" src="resources/void.gif" vspace="0" width="1"></TD></TR><TR><TD
bgcolor="#039acc" width="1"><IMG border="0" height="1" hspace="0" src="resources/void.gif"
vspace="0" width="1"></TD><TD bgcolor="#0086b2" width="482"><FONT color="#ffffff"
face="arial,helvetica,sanserif"><IMG border="0" height="2" hspace="0" src="resources/void.gif"
vspace="0" width="2"><B>Method One</B></FONT></TD><TD bgcolor="#017299"
width="1"><IMG border="0" height="1" hspace="0" src="resources/void.gif" vspace="0"
wi
dth="1"></TD></TR><TR><TD bgcolor="#0086b2" height="1" width="1"><IMG
border="0" height="1" hspace="0" src="resources/void.gif" vspace="0" width="1"></TD><TD
bgcolor="#017299" height="1" width="482"><IMG border="0" height="1" hspace="0" src="resources/void.gif"
vspace="0" width="482"></TD><TD bgcolor="#017299" height="1" width="1"><IMG
border="0" height="1" hspace="0" src="resources/void.gif" vspace="0" width="1"></TD></TR></TABLE></TD></TR><TR><TD
width="10"></TD><TD width="474"><FONT color="#000000" face="arial,helvetica,sanserif"
size="-1">
         <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><FONT face="courier, monospaced">java -cp fop_x_xx_x.jar;xerces.jar</FONT></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><FONT face="courier, monospaced">java -cp fop_bin_0_12_0.jar;xp.jar;xerces.jar
</FONT></CODE></P>
  +      <P><CODE><FONT face="courier, monospaced">org.apache.fop.apps.CommandLine
fo-file pdf-file</FONT></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><FONT face="courier, monospaced">java -Dorg.xml.sax.parser=org.apache.xerces.parsers.SAXParser</FONT></CODE></P>
  +      <P><CODE><FONT face="courier, monospaced">-cp fop_bin_0_12_0.jar;xerces.jar</FONT></CODE></P>
         <P><CODE><FONT face="courier, monospaced">org.apache.fop.apps.CommandLine
fo-file pdf-file</FONT></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><FONT face="courier, monospaced">java -Dorg.xml.sax.parser=com.jclark.xml.sax.Driver</FONT></CODE></P>
  -      <P><CODE><FONT face="courier, monospaced">-cp fop_x_xx_x.jar;sax.jar;xt.jar;xp.jar;xerces.jar</FONT></CODE></P>
  -      <P><CODE><FONT face="courier, monospaced">org.apache.fop.apps.AWTCommandLine
formatting-tree-file pdf-file</FONT></CODE></P>
  -      <P>(You have to include xerces.jar or another xml parser which supports DOM
in your classpath.) </P>
       </FONT></TD></TR></TABLE><BR>
       <TABLE border="0" cellpadding="0" cellspacing="0" width="484"><TR><TD
bgcolor="666699" colspan="2" width="484"><TABLE border="0" cellpadding="0" cellspacing="0"
width="484"><TR><TD bgcolor="#039acc" height="1" width="1"><IMG border="0"
height="1" hspace="0" src="resources/void.gif" vspace="0" width="1"></TD><TD bgcolor="#039acc"
height="1" width="482"><IMG border="0" height="1" hspace="0" src="resources/void.gif"
vspace="0" width="482"></TD><TD bgcolor="#0086b2" height="1" width="1"><IMG
border="0" height="1" hspace="0" src="resources/void.gif" vspace="0" width="1"></TD></TR><TR><TD
bgcolor="#039acc" width="1"><IMG border="0" height="1" hspace="0" src="resources/void.gif"
vspace="0" width="1"></TD><TD bgcolor="#0086b2" width="482"><FONT color="#ffffff"
face="arial,helvetica,sanserif"><IMG border="0" height="2" hspace="0" src="resources/void.gif"
vspace="0" width="2"><B>Method Two</B></FONT></TD><TD bgcolor="#017299"
width="1"><IMG border="0" height="1" hspace="0" src="resources/void.gif" vspace="0"
wi
dth="1"></TD></TR><TR><TD bgcolor="#0086b2" height="1" width="1"><IMG
border="0" height="1" hspace="0" src="resources/void.gif" vspace="0" width="1"></TD><TD
bgcolor="#017299" height="1" width="482"><IMG border="0" height="1" hspace="0" src="resources/void.gif"
vspace="0" width="482"></TD><TD bgcolor="#017299" height="1" width="1"><IMG
border="0" height="1" hspace="0" src="resources/void.gif" vspace="0" width="1"></TD></TR></TABLE></TD></TR><TR><TD
width="10"></TD><TD width="474"><FONT color="#000000" face="arial,helvetica,sanserif"
size="-1">
         <P>Rather than performing transformation with an XSLT before invoking FOP,
it is 
  @@ -63,10 +67,9 @@
            need to include FOP, SAX, your SAX Parser and XT in your classpath and so you
might 
            invoke 
         </P>
  -      <P><CODE><FONT face="courier, monospaced">java -Dorg.xml.sax.parser=com.jclark.xml.sax.Driver</FONT></CODE></P>
  -      <P><CODE><FONT face="courier, monospaced">-cp fop_x_xx_x.jar;xt.jar;xerces.jar</FONT></CODE></P>
  +      <P><CODE><FONT face="courier, monospaced">java -cp fop_bin_0_12_0.jar;xt.jar;xp.jar;xerces.jar</FONT></CODE></P>
         <P><CODE><FONT face="courier, monospaced">org.apache.fop.apps.CommandLine
xml-file xsl-file pdf-file</FONT></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>
       </FONT></TD></TR></TABLE><BR>
  @@ -75,7 +78,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><FONT face="courier, monospaced">java -cp fop_x_xx_x.jar;xerces.jar</FONT></CODE></P>
  +      <P><CODE><FONT face="courier, monospaced">java -cp fop_bin_0_12_0.jar;xp.jar;xerces.jar</FONT></CODE></P>
         <P><CODE><FONT face="courier, monospaced">org.apache.fop.apps.AWTCommandLine
fo-file </FONT></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