Calabash configuration
-
- 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>
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}
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
Is there something I need to configure in the scenario to have a sequence of outputs?
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Calabash configuration
Post by sorin_ristache »
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>
Regards,
Sorin
-
- Posts: 82
- Joined: Sat Jan 13, 2007 5:39 pm
- Location: Belgium
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Calabash configuration
Post by sorin_ristache »
Regards,
Sorin
-
- Posts: 82
- Joined: Sat Jan 13, 2007 5:39 pm
- Location: Belgium
Re: Calabash configuration
Post by PaulHermans »
Did you receive it now?
I used sorin at oxygenxml.com, the form and support at oxygenxml.com.
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Calabash configuration
Post by sorin_ristache »
Thank you for the example,
Sorin
-
- Posts: 82
- Joined: Sat Jan 13, 2007 5:39 pm
- Location: Belgium
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Calabash configuration
Post by sorin_ristache »
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
-
- Posts: 82
- Joined: Sat Jan 13, 2007 5:39 pm
- Location: Belgium
Re: Calabash configuration
Post by PaulHermans »
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
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Calabash configuration
Post by sorin_ristache »
sh oxygenMac.sh
to see any standard output error.
Regards,
Sorin
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Calabash configuration
Post by sorin_ristache »
Regards,
Sorin
-
- Posts: 82
- Joined: Sat Jan 13, 2007 5:39 pm
- Location: Belgium
Re: Calabash configuration
Post by PaulHermans »
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.
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
-
- Posts: 82
- Joined: Sat Jan 13, 2007 5:39 pm
- Location: Belgium
Re: Calabash configuration
Post by PaulHermans »
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
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
-
- Posts: 82
- Joined: Sat Jan 13, 2007 5:39 pm
- Location: Belgium
Re: Calabash configuration
Post by PaulHermans »
Sorry to say this, but still the same behavior.
Only succeeding if the output port has been removed.
Paul
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Calabash configuration
Post by sorin_ristache »
Regards,
Sorin
-
- Posts: 82
- Joined: Sat Jan 13, 2007 5:39 pm
- Location: Belgium
Re: Calabash configuration
Post by PaulHermans »
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
-
- Posts: 143
- Joined: Tue Mar 25, 2003 11:21 am
Re: Calabash configuration
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.
<oXygen> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 82
- Joined: Sat Jan 13, 2007 5:39 pm
- Location: Belgium
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service