RE: Cannot pass the full name of the XSL FO file in command line
| Newsgroups | gmane.text.xml.jfor.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, I implemented the jfor in a servlet. I too have the same problem. I am not able to give the full path to the servlet. Can anybody please help bye sanjeev Original Message: ----------------- From: Granchak, Tanya [email protected] Date: Thu, 19 Sep 2002 16:37:14 +0400 To: [email protected] Subject: [jfor-users] Cannot pass the full name of the XSL FO file in command line Hello, I have the problem with command line conversion: I cannot pass the full name of the XSL FO file to Jfor. I have the file C:\Temp\jfortest.xml. When I pass this path to Jfor an exception occurs. I've made a lot of tries. When I execute the command line: java -cp lib\xerces-1.2.3.jar;dist\lib\jfor.jar ch.codeconsult.jfor.main.CmdLineConverter "c:\Temp\jfortest.xml" "C:\Temp\jfortest.rtf" I get the message: org.xml.sax.SAXParseException: File "c:\Temp\jfortest.xml" not found. When I execute the command line: java -cp lib\xerces-1.2.3.jar;dist\lib\jfor.jar ch.codeconsult.jfor.main.CmdLineConverter "file:///c:\Temp\jfortest.xml" "C:\Temp\jfortest.rtf" I get the message: java.io.IOException: The filename, directory name, or volume label syntax is incorrect When I execute the command line: java -cp lib\xerces-1.2.3.jar;dist\lib\jfor.jar ch.codeconsult.jfor.main.CmdLineConverter "file:///c:/Temp/jfortest.xml" "C:\Temp\jfortest.rtf" I get the message: java.io.IOException: The filename, directory name, or volume label syntax is incorrect When I execute the command line: java -cp lib\xerces-1.2.3.jar;dist\lib\jfor.jar ch.codeconsult.jfor.main.CmdLineConverter "c:/Temp/jfortest.xml" "C:\Temp\jfortest.rtf" I get the message: org.xml.sax.SAXParseException: File "c:/Temp/jfortest.xml" not found. But: if the file "jfortest.xml" is in the current directory (the directory from which I execute command) then The command java -cp lib\xerces-1.2.3.jar;dist\lib\jfor.jar ch.codeconsult.jfor.main.CmdLineConverter "jfortest.xml" "C:\Temp\jfortest.rtf" executes correctly and I get the correct RTF file. How should I pass the full path name of the XSL FO file to Jfor? Regards Tanya Granchak -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf