Calabash configuration

Having trouble installing Oxygen? Got a bug to report? Post it all here.
PaulHermans
Posts: 82
Joined: Sat Jan 13, 2007 5:39 pm
Location: Belgium

Calabash configuration

Post by PaulHermans »

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<?oxygen RNGSchema="file:/Applications/oxygen%2011/frameworks/xproc/xproc.rnc" type="compact"?>
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc"
xmlns:wts="http://www.w3.org/XML/2004/xml-schema-test-suite/"
xmlns:c="http://www.w3.org/ns/xproc-step"
xmlns:cx="http://xmlcalabash.com/ns/extensions"
xmlns:xlink="http://www.w3.org/1999/xlink"
xpath-version="1.0" name="generatereport">
<p:output port="result" sequence="true">
<p:pipe port="result" step="fileloop"/>
</p:output>
<p:import href="http://xmlcalabash.com/extension/steps/library-1.0.xpl"/>
<p:directory-list name="list" include-filter=".*\.rdf"
path="file:///Users/paul/Desktop/Projects/Test/URI/rdf/"/>
<p:make-absolute-uris match="c:file/@name" name="abslist">
<p:with-option name="base-uri" select="/c:directory/@xml:base"/>
</p:make-absolute-uris>

<p:for-each name="fileloop">
<p:output port="result" sequence="true">
<p:pipe port="result" step="store"/>
</p:output>
<p:iteration-source select="/c:directory/c:file"/>
<p:variable name="file" select="/c:file/@name"/>
<p:load name="load">
<p:with-option name="href" select="$file"/>
</p:load>
<cx:message>
<p:with-option name="message" select="concat('collection : ',$file)"/>
</cx:message>
<p:xslt name="convert" version="1.0">
<p:input port="source"/>
<p:input port="stylesheet">
<p:document href="file:///Users/paul/Desktop/Projects/Test/URI/2cv.xsl"/>
</p:input>
<p:input port="parameters">
<p:empty/>
</p:input>
</p:xslt>
<p:store name="store">
<p:with-option name="href"
select="concat(substring-before($file,'.'),'s','.xml')">
<p:empty/>
</p:with-option>
</p:store>
</p:for-each>
</p:declare-step>
Strange thing is that running this xproc from Calabash 0.9.15 configured as external tool

Code: Select all

java -Xms128m -Xmx1024m -cp /Applications/calabash-0.9.15/lib/calabash.jar:/Applications/saxonsa9-1-0-5j/saxon9sa.jar:/Applications/saxonsa9-1-0-5j/saxon9-s9api.jar:/Applications/msv-20080213/msv.jar:/Applications/msv-20080213/isorelax.jar:/Applications/saxonsa9-1-0-5j/ com.xmlcalabash.drivers.Main -a ${cf} 
gives the desired results

while running it as an XProc Transformation scenario

leads to

Code: Select all

SystemID: /Users/paul/Desktop/Projects/ICTU/URI/lijstjes.xproc
Engine name: Calabash XProc
Severity: error
Description: XD0006 : XD0006 If sequence is not specified, or has the value false, then it is a dynamic error unless exactly one document appears on the declared port.
URL: http://www.w3.org/TR/xproc/#err.D0006
Really puzzled by this.
Is there something I need to configure in the scenario to have a sequence of outputs?
Paul
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Calabash configuration

Post by sorin_ristache »

Hello,

Using a simple stylesheet 2cv.xsl and a sample RDF file in the folder Users/paul/Desktop/Projects/Test/URI/rdf/ I get the same result from an XProc scenario and an external tool that calls the Calabash main class:

Code: Select all

<c:result>file:/Users/paul/Desktop/Projects/Test/URI/rdf/f1s.xml</c:result>
Can you post a sample XSLT stylesheet and sample RDF file from folder Users/paul/Desktop/Projects/Test/URI/rdf/ for reproducing the problem?


Regards,
Sorin
PaulHermans
Posts: 82
Joined: Sat Jan 13, 2007 5:39 pm
Location: Belgium

Re: Calabash configuration

Post by PaulHermans »

Done via email.
Paul
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Calabash configuration

Post by sorin_ristache »

We did not receive the email. What email address did you use? You can use also the Technical Support form.


Regards,
Sorin
PaulHermans
Posts: 82
Joined: Sat Jan 13, 2007 5:39 pm
Location: Belgium

Re: Calabash configuration

Post by PaulHermans »

Sorin,

Did you receive it now?


I used sorin at oxygenxml.com, the form and support at oxygenxml.com.
Paul
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Calabash configuration

Post by sorin_ristache »

Yes we received the example now. We will investigate the problem and we will let you know.


Thank you for the example,
Sorin
PaulHermans
Posts: 82
Joined: Sat Jan 13, 2007 5:39 pm
Location: Belgium

Re: Calabash configuration

Post by PaulHermans »

Sorin,

No input/news on this one yet?
Paul
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Calabash configuration

Post by sorin_ristache »

Hello Paul,

We fixed that but after the Oxygen 11 build that is now available on the Download page. That means it will be included in the next maintenance build of Oxygen. Please replace your oxygen.jar file with this one and quit and restart Oxygen. Just subscribe to this RSS for receiving a notification of the next Oxygen build.


Regards,
Sorin
PaulHermans
Posts: 82
Joined: Sat Jan 13, 2007 5:39 pm
Location: Belgium

Re: Calabash configuration

Post by PaulHermans »

Thanks Sorin,

After copying the jar file, Oxygen 11 doesn't start anymore.
I'll wait for the next build; it can wait until next week.

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

Re: Calabash configuration

Post by sorin_ristache »

I just dropped that jar in the lib folder of an Oxygen 11.0 installation and it starts up correctly with the build number 2009102014. What error do you get? Try to start it with

sh oxygenMac.sh

to see any standard output error.


Regards,
Sorin
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Calabash configuration

Post by sorin_ristache »

Maybe oxygen.jar was not downloaded correctly on your computer? Does it have the file size 12,652,329?


Regards,
Sorin
PaulHermans
Posts: 82
Joined: Sat Jan 13, 2007 5:39 pm
Location: Belgium

Re: Calabash configuration

Post by PaulHermans »

Sorin,

Just did a fresh download and copy. Oxygen 11 starts now.

Trying the Calabash XProc transformation.

It runs without error message.

However if I open and edit the transformation scenario (without changing anything) and run the transformation again from there, it breaks.

In the transformation scenario the output port "result" is shown.

If I remove this port, then the transformation runs again.
Paul
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Calabash configuration

Post by sorin_ristache »

I am sorry, you have to replace also [Oxygen11-folder]/lib/xproc/calabash/xprocCalabash.jar with this file and [Oxygen11-folder]/lib/xproc/calabash/engine.xml with this file.


Regards,
Sorin
PaulHermans
Posts: 82
Joined: Sat Jan 13, 2007 5:39 pm
Location: Belgium

Re: Calabash configuration

Post by PaulHermans »

Sorin,

Done, but the same issue remains.

Running good without opening the transformation scenario.
Getting the error when editing the transformation scenario.
After having deleted the output port, the transformation runs again.


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

Re: Calabash configuration

Post by sorin_ristache »

Please try with this Oxygen 11 build. It should have build number 2009102017.


Regards,
Sorin
PaulHermans
Posts: 82
Joined: Sat Jan 13, 2007 5:39 pm
Location: Belgium

Re: Calabash configuration

Post by PaulHermans »

Sorin,

Sorry to say this, but still the same behavior.

Only succeeding if the output port has been removed.


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

Re: Calabash configuration

Post by sorin_ristache »

Please make sure you unzip the Mac kit that I provided yesterday in a new folder, that is not in the same folder as a previous build of Oxygen.


Regards,
Sorin
PaulHermans
Posts: 82
Joined: Sat Jan 13, 2007 5:39 pm
Location: Belgium

Re: Calabash configuration

Post by PaulHermans »

Sorin,

It was run from a completely different location; from the Desktop not from /Applications.

I double checked (new install somewhere else) and I still have to remove the output port to make it run.




Paul
Paul
Mircea
Posts: 143
Joined: Tue Mar 25, 2003 11:21 am

Re: Calabash configuration

Post by Mircea »

Hi Paul,

We identified the problem and a new kit will be available for general download later this day, we will notify you about it.

Thank you for reporting this issue.

Best regards,
Mircea.
Mircea Enachescu
<oXygen> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
PaulHermans
Posts: 82
Joined: Sat Jan 13, 2007 5:39 pm
Location: Belgium

Re: Calabash configuration

Post by PaulHermans »

Indeed, solved in this build.


Thanks.


Paul
Paul
Post Reply