You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by madhav pulipaka <ma...@asl.com> on 2001/01/10 06:04:49 UTC

problem using XTCommandLine

Hi, I am trying to generate a pdf from xml and xsl using
java org.apache.fop.apps.XTCommandLine xml-file xsl-file
                pdf-file.
I am getting errors with my xml or xsl files which are valid and well
formed.
Can I find a Example to study .
Thanks,
madhav


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: problem using XTCommandLine

Posted by Arved Sandstrom <Ar...@chebucto.ns.ca>.
At 10:34 AM 1/10/01 +0530, you wrote:
>
>Hi, I am trying to generate a pdf from xml and xsl using
>java org.apache.fop.apps.XTCommandLine xml-file xsl-file
>                pdf-file.
>I am getting errors with my xml or xsl files which are valid and well
>formed.
>Can I find a Example to study .
>Thanks,
>madhav

I need to probably clean up XTCommandLine, but FWIW the following batch file 
worked on Win98:

set FOP=c:\xml\Processors\fop-0_16_0
set CLASSPATH=c:\xml\lib\xerces.jar
set CLASSPATH=%CLASSPATH%;c:\xml\lib\xt.jar;%FOP%\lib\w3c.jar;%FOP%\fop.jar

rem one line for following
java -Dorg.xml.sax.parser=org.apache.xerces.parsers.SAXParser
	org.apache.fop.apps.XTCommandLine %1.xml %2.xsl %3.pdf

I tested against normal.xml and normal.xsl in fop-0_16_0/docs/examples/xslt. 
I know this is an evil mix of Xerces and XT; I figure xp will work also but 
then you have to obtain DOM and SAX jars.

NOTE 1: ignore the shell scripts that are in that directory. These were 
quick & dirty scripts for me to test XTCommandLine and XalanCommandLine; I 
forgot to take them out.

NOTE 2: if I've made egregious errors with DOM, forgive me. The only time I 
ever used DOM was the XML::DOM Perl module back about 2 years ago...I don't 
like DOM and attempt to not use it :-)

Regards,
Arved Sandstrom

Fairly Senior Software Type
e-plicity (http://www.e-plicity.com)
Wireless * B2B * J2EE * XML --- Halifax, Nova Scotia


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org