Cannot pass the full name of the XSL FO file in command line

"Granchak, Tanya" <[email protected]> Thu, 19 Sep 2002 16:29:01 +0400
Newsgroups gmane.text.xml.jfor.devel
Organization Active Web Services LLC
Message-ID <[email protected]>
This is a multi-part message in MIME format.

------=_NextPart_000_0024_01C25FF9.ABA778D0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

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
 

------=_NextPart_000_0024_01C25FF9.ABA778D0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 10">
<meta name=3DOriginator content=3D"Microsoft Word 10">
<link rel=3DFile-List href=3D"cid:[email protected]">
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;
	text-underline:single;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	mso-style-noshow:yes;
	mso-ansi-font-size:10.0pt;
	mso-bidi-font-size:10.0pt;
	font-family:Arial;
	mso-ascii-font-family:Arial;
	mso-hansi-font-family:Arial;
	mso-bidi-font-family:Arial;
	color:windowtext;}
span.SpellE
	{mso-style-name:"";
	mso-spl-e:yes;}
span.GramE
	{mso-style-name:"";
	mso-gram-e:yes;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */=20
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin:0in;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple =
style=3D'tab-interval:.5in'>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Hello,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I have the problem with command line conversion: I =
cannot
pass the full name of the XSL FO file to <span =
class=3DSpellE>Jfor</span>.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I have the file C:\Temp\jfortest.xml. When I pass =
this path
to <span class=3DSpellE>Jfor</span> an exception occurs. I&#8217;ve made =
a lot of
tries.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>When I execute the command =
line:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><span class=3DGramE><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>java</span></font></span><fo=
nt
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'> -cp
lib\xerces-1.2.3.jar;dist\lib\jfor.jar <span =
class=3DSpellE>ch.codeconsult.jfor.main.CmdLineConverter</span>
&quot;c:\Temp\jfortest.xml&quot; =
&quot;C:\Temp\jfortest.rtf&quot;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><span class=3DGramE><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>I<span
style=3D'mso-spacerun:yes'>&nbsp; </span>get</span></font></span><font =
size=3D2
face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'> the =
message:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><span class=3DSpellE><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>org.xml.sax.SAXParseExceptio=
n</span></font></span><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>: File
&quot;c:\Temp\jfortest.xml&quot; not found.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>When I execute the command =
line:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><span class=3DGramE><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>java</span></font></span><fo=
nt
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'> -cp
lib\xerces-1.2.3.jar;dist\lib\jfor.jar <span =
class=3DSpellE>ch.codeconsult.jfor.main.CmdLineConverter</span>
&quot;file:///c:\Temp\jfortest.xml&quot; =
&quot;C:\Temp\jfortest.rtf&quot;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><span class=3DGramE><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>I<span
style=3D'mso-spacerun:yes'>&nbsp; </span>get</span></font></span><font =
size=3D2
face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'> the =
message:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><span class=3DSpellE><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>java.io.IOException</span></=
font></span><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>: The
filename, directory name, or volume label syntax is =
incorrect<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>When I execute the command =
line:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><span class=3DGramE><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>java</span></font></span><fo=
nt
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'> -cp
lib\xerces-1.2.3.jar;dist\lib\jfor.jar <span =
class=3DSpellE>ch.codeconsult.jfor.main.CmdLineConverter</span>
&quot;file:///c:/Temp/jfortest.xml&quot; =
&quot;C:\Temp\jfortest.rtf&quot;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><span class=3DGramE><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>I<span
style=3D'mso-spacerun:yes'>&nbsp; </span>get</span></font></span><font =
size=3D2
face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'> the =
message:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><span class=3DSpellE><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>java.io.IOException</span></=
font></span><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>: The
filename, directory name, or volume label syntax is =
incorrect<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>When I execute the command =
line:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><span class=3DGramE><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>java</span></font></span><fo=
nt
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'> -cp
lib\xerces-1.2.3.jar;dist\lib\jfor.jar <span =
class=3DSpellE>ch.codeconsult.jfor.main.CmdLineConverter</span>
&quot;c:/Temp/<span class=3DSpellE>jfortest.xml</span>&quot;
&quot;C:\Temp\jfortest.rtf&quot;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><span class=3DGramE><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>I<span
style=3D'mso-spacerun:yes'>&nbsp; </span>get</span></font></span><font =
size=3D2
face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'> the =
message:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><span class=3DSpellE><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>org.xml.sax.SAXParseExceptio=
n</span></font></span><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>: File
&quot;c:/Temp/<span class=3DSpellE>jfortest.xml</span>&quot; not =
found.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>But: if the file &#8220;<span =
class=3DSpellE>jfortest.xml</span>&quot;
is in the current directory (the directory from which I execute command) =
then<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>The command <o:p></o:p></span></font></p>

<p class=3DMsoNormal><span class=3DGramE><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>java</span></font></span><fo=
nt
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'> -cp
lib\xerces-1.2.3.jar;dist\lib\jfor.jar <span =
class=3DSpellE>ch.codeconsult.jfor.main.CmdLineConverter</span>
&quot;<span class=3DSpellE>jfortest.xml</span>&quot;
&quot;C:\Temp\jfortest.rtf&quot;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><span class=3DGramE><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>executes</span></font></span=
><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'> correctly
and I get the correct RTF file.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>How should I pass the full path name of the XSL FO =
file to <span
class=3DSpellE>Jfor</span>?<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Regards<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Tanya <span =
class=3DSpellE>Granchak</span><o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>

------=_NextPart_000_0024_01C25FF9.ABA778D0--



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf