Re: Porblems with pxf:copy xmlcalabash-1.5.7-120

Dear Martin,

Thanks for spotting this!

Hopefully more clarification will surface ;-)

> On 18. Apr 2024, at 14:48, Martin Honnen <martin.honnen@gmx.de> wrote:
> 
> 
> 
> 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..." <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 <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 <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 15:42:15 UTC