Enabling cxf:copy in calabash
Posted: Tue Jul 17, 2018 5:25 pm
Hello,
I write a pipeline in xproc and simply tried to copy a file.
At first, I tried to p:load and p:store a file, but
throws an error err:XC0011 Could not load file. When I use the @select-expression in p:store, it works for saving the file. Also, a relative path like './in/', $dirName , '/lala.xml' works.
Second, I tried to use a copy-step like
but these extension (sometimes pxf-Namespace) aren't enabled or not implemented.
So i have three questions:
[*]What is wrong with 'file://Z:/dirA/dir' in p:load?
[*]How can I enable the extension for calabash?
[*]Or, what is the best way to copy a file in Oxygen's calabash?
Thanks
I write a pipeline in xproc and simply tried to copy a file.
At first, I tried to p:load and p:store a file, but
Code: Select all
<p:load >
<p:with-option name="href" select="concat('file://Z:/dirA/dirB/in/', $dirName , '/lala.xml')"/>
</p:load>
Second, I tried to use a copy-step like
Code: Select all
<cxf:copy xmlns:cxf="http://xmlcalabash.com/ns/extensions/fileutils">
<p:with-option name="href" select="concat('./in/', $dirName , '/meta.xml')"/>
<p:with-option name="target" select="concat('./out/', $dirName, '/meta.xml')"></p:with-option>
</cxf:copy>
So i have three questions:
[*]What is wrong with 'file://Z:/dirA/dir' in p:load?
[*]How can I enable the extension for calabash?
[*]Or, what is the best way to copy a file in Oxygen's calabash?
Thanks