Re: [xproc-dev] <none>

Hi Ahmed,

You might also check the Oxygen support forums and/or documentation.
Your issue does seem to be with the way you're invoking the pipeline. I
believe that in an Oxygen transformation scenario using ${ask()} is
meant to cause Oxygen to prompt the user for input, in this case the url
of the source file, probably via a file chooser dialog. Perhaps somehow
when prompted you provided the path to a directory instead of to a
source file?

If you're really trying to have Oxygen get a value from an environment
variable, I think using ${env(VAR_NAME)} in the transform scenario does
that, but definitely check the Oxygen docs/support forums/support for



On 5/19/20 12:24 PM, Christophe Marchand wrote:
> As you can see in the error message :
>   * Error is raised by XProc engine, i.e. Calabash.
>   * Calabash received "C:\Users\Ali\ExcelToXML\${ask('message',url)}"
>     as input document URL, which is not a valid URL, and probably
>     isn't a valid file on your file system.
> Try to run Calabash directly from command line, using Calabash help :
> java com.xmlcalabash.drivers.Main xpl/your-pipeline.xpl -i
> source=C:\Users\Ali\ExcelToXML\your-file.xml
> Hth,
> Christophe
> Le 11/05/2020 à 17:37, Ahmed Abdulhadi a écrit :
>> Hello,
>> I'm fairly new to XProc, and I am attempting to run a XProc where I
>> run multiple stylesheet passes. As seen below:  
>>     <p:declare-step xmlns:p=""
>>     xmlns:c="" version="1.0"><p:input
>>     port="source"/><p:input port="parameters"
>>     kind="parameter"/><p:output port="result"/><p:xslt
>>     name="firstPass"><p:input port="stylesheet"><p:document
>>     href="FirstPass.xsl"/></p:input></p:xslt><p:xslt><p:input
>>     port="stylesheet"><p:document
>>     href="SecondPass.xsl"/></p:input></p:xslt><p:xslt><p:input
>>     port="stylesheet"><p:document
>>     href="ThirdPass.xsl"/></p:input></p:xslt></p:declare-step> 
>> I'm running this through an Oxygen XML Editor Scenario that using the
>> Calabash engine. I'm attempting to use an environmental variable in
>> Oxygen for the source input. I want the user to specify the XML
>> document saved on a file disk, and load that as the source:
>> image.png
>> However, I receive the following error below:
>>     err:XD0011 : XProc error err:XD0011 It isa dynamic error ifthe
>>     resource referenced bya p:documentelement does notexist, cannot
>>     be accessed, orisnota well-formed XML document.
>>     C:\Users\Ali\ExceltoXML\${ask('message', url)} (The system cannot
>>     find the file specified) 
>> I posted this specific question on the Oxygen forum site. I was
>> informed that I can't use the ask variable in the input source but I
>> could use it in the parameters. 
>> How do I pass the source as a dynamic variable or the source as a
>> parameter? 
>> Thanks,
>> Ahmed

Received on Wednesday, 20 May 2020 06:12:21 UTC