## Error integrating calabash

Questions about XML that are not covered by the other forums should go here.
JohnBampton
Posts: 14
Joined: Tue Feb 10, 2009 1:50 pm

### Error integrating calabash

I am trying to use calabash in oxygen an I get the following error? Why is the file not found error popping up?

Started: java -cp "C:\calabash\calabash-0.9.14\lib\calabash.jar;C:\Program Files\Saxon9.1B\saxon9.jar;C:\Program Files\Saxon9.1B\saxon9-s9api.jar" com.xmlcalabash.drivers.Main pipe.xpl

Error : Pipeline failed: err:XD0011: XProc error err:XD0011 It is a dynamic error if the resource referenced by a p:document element does not exist, cannot be accessed, or is not a well-formed XML document.
Error : Underlying exception: net.sf.saxon.s9api.SaxonApiException: java.io.FileNotFoundException: C:\calabash\calabash-0.9.14\xpl\pipe.xpl
(The filename, directory name, or volume label syntax is incorrect)
Process ended with exit code: 0

Regards,

John.

sorin_ristache
Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

### Re: Error integrating calabash

Hello,

Do you mean you configured XProc as external tool in Oxygen? What is the value of the working directory of the external tool? Does the file C:\calabash\calabash-0.9.14\xpl\pipe.xpl exist on disk?

For example I set the command line of the external tool as:

Code: Select all

``java -cp ... com.xmlcalabash.drivers.Main \${cfd}/\${cfne}``
and I do not get the error. \${cfd} and \${cfne} are Oxygen editor variables that are expanded to the directory and filename of the current file edited in Oxygen. I get the same error as you only if .xpl file does not exist in the specified path.

Regards,
Sorin

JohnBampton
Posts: 14
Joined: Tue Feb 10, 2009 1:50 pm

### Re: Error integrating calabash

Yes I am trying to run calabash as an external tool.

The working directory is set as a .

The file does exist.

Not sure what I am doing wrong??

Regards,

John.

sorin_ristache
Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

### Re: Error integrating calabash

Hello,

Do you get the same error if you copy and paste the Java command from the output view of Oxygen to a command line?

Regards,
Sorin

JohnBampton
Posts: 14
Joined: Tue Feb 10, 2009 1:50 pm

### Re: Error integrating calabash

No I do not get the error when run from the command line. Any ideas?

george
Posts: 2102
Joined: Thu Jan 09, 2003 2:58 pm

### Re: Error integrating calabash

The . as working directory expands to the directory where oXygen is started in. You can use \${cfd} and it should work if the current file is the one you want to execute or another file in the same folder.

An even better alternative is to use for the command line the expression Sorin gave you to specify the XProc script \${cfd}/\${cfne}, so the command line should look like

java -cp "..." com.xmlcalabash.drivers.Main \${cfd}/\${cfne}

where "..." is your actual class path.

Best Regards,
George
George Cristian Bina

george