ndw / xmlcalabash1

XML Calabash, an XProc processor
http://xmlcalabash.com/
108 stars 41 forks source link

1.2.3-100: p:xquery "ERROR: Pipeline failed: null" #313

Closed AirQuick closed 4 years ago

AirQuick commented 4 years ago

Hi,

This p:xquery fails on 1.2.3-100. It works on 1.2.3-99:

$ java -version
java version "1.8.0_261"
Java(TM) SE Runtime Environment (build 1.8.0_261-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.261-b12, mixed mode)
$ cat test.xpl
<?xml version="1.0" encoding="UTF-8"?>
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="1.0">
   <p:input port="source">
      <p:empty />
   </p:input>
   <p:output port="result" />

   <p:xquery>
      <p:input port="query">
         <p:inline><query xmlns="http://www.w3.org/ns/xproc-step">xquery version "3.1";

import module "http://www.functx.com"
at "https://raw.githubusercontent.com/xspec/xspec/60912bfdd71c2b7658b5484dec06612bc502eeb6/tutorial/xquery-tutorial.xqm";

element test { Q{http://www.functx.com}capitalize-first('hello') }</query></p:inline>
      </p:input>
      <p:input port="parameters">
         <p:empty />
      </p:input>
   </p:xquery>

</p:declare-step>
$ java -jar xmlcalabash-1.2.3-99/xmlcalabash-1.2.3-99.jar test.xpl
<test>Hello</test>
$ java -jar xmlcalabash-1.2.3-100/xmlcalabash-1.2.3-100.jar test.xpl
ERROR: Pipeline failed: null
$ 
ndw commented 4 years ago

Thank you. I wonder why my tests didn't catch that. I'm flat out today, but I'll try to resolve this tomorrow.

ndw commented 4 years ago

Fixed, I believe.

AirQuick commented 4 years ago

Thanks. It's working fine.