Enabling cxf:copy in calabash
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 3
- Joined: Tue Jul 17, 2018 5:04 pm
Enabling cxf:copy in calabash
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
-
- Posts: 9451
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Enabling cxf:copy in calabash
Hi,
I'm not a Calabash expert but I will try to give you some suggestions:
http://xprocbook.com/book/refentry-49.html
http://lists.w3.org/Archives/Public/xproc-dev/
Regards,
Radu
I'm not a Calabash expert but I will try to give you some suggestions:
I think you need to use either three slashes or one slash after the "file:" (whichever works). So never use two slashes, because this means that after the two slashes there would be a host name (in this case "Z:" which is incorrect, there are no host names in an URL when you refer content on the local disk.[*]What is wrong with 'file://Z:/dirA/dir' in p:load?
Maybe you can look at the example here:[*]How can I enable the extension for calabash?
http://xprocbook.com/book/refentry-49.html
In addition there is an XProc mailing list on which you could register and ask around:[*]Or, what is the best way to copy a file in Oxygen's calabash?
http://lists.w3.org/Archives/Public/xproc-dev/
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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