- From: Martin Honnen <martin.honnen@gmx.de>
- Date: Thu, 18 Apr 2024 14:48:40 +0200
- To: xproc-dev@w3.org
- Message-ID: <67fda716-9d10-4f1a-817f-43649d873740@gmx.de>
On 17/04/2024 15:56, Benjamin W. Bohl wrote: > Dear list:eners, > > I'm still learning XProc and wanted to copy some image files from a > directory using pxf:copy in my pipeline running on xmlcalabash-1.5.7-120. > > Nevertheless, I cannot make it work and always get a strange > SaxonAPIError: > > com.xmlcalabash.core.XProcException: XProc error err:XD0045 > […] > Caused by: net..sf.saxon.s9api.SaxonApiException: The string > "file:/Volumes/VCS/SVN/bazga-ed..." cannot be cast to a boolean > > The string that throws the error is my target option for pxf:copy. The documentation https://xmlcalabash.com/docs/reference/pxf-copy.html indeed declares the type of target as boolean |<p:declare-step||type||="||pxf:copy||"||xmlns:pxf||="||http://exproc.org/proposed/steps/file||"||>| |<p:output||port||="||result||"||primary||="||false||"||/>| |<p:option||name||="||href||"||required||="||true||"||/>||||<!-- |anyURI| -->| |<p:option||name||="||target||"||required||="||true||"||/>||||<!-- |boolean| -->| |<p:option||name||="||fail-on-error||"||select||="||'true'||"||/>||||<!-- |boolean| -->| |</p:declare-step>| Hopefully Norm or someone else can explain you how to correctly use the step.
Received on Thursday, 18 April 2024 12:48:43 UTC