- From: James Sulak <jsulak@gmail.com>
- Date: Sun, 9 Nov 2008 16:38:52 -0600
- To: xproc-dev <xproc-dev@w3.org>
I might have discovered a calabash bug, but it's just as likely I'm at fault. I am attempting to use p:import to import and run pipeline A in pipeline B. Pipeline A runs correctly on its own, but does not when included within pipeline B. I'm using calabash 0.8.5. Interestingly, when I place my user-defined step inside a library, and import the library, it does work. But section 5.10 of the spec says that I can import a p:declare-step directly. Here's the error I get: Error : XS0008: Attribute "type" not allowed on p:declare-step Error : Pipeline failed: java.lang.UnsupportedOperationException: Can't parse p:declare-step as a pipeline! Pipeline A (the imported pipeline): <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" xmlns:c="http://www.w3.org/ns/xproc-step" xmlns:jmp="jmp" type="jmp:sub-pipe"> <p:input port="source" primary="true" /> <p:output port="result" primary="true" /> <p:identity /> </p:declare-step> Pipeline B (the importing pipeline): <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" xmlns:c="http://www.w3.org/ns/xproc-step" name="import-test" xmlns:jmp="jmp" > <p:input port="source" /> <p:input port="parameters" kind="parameter" /> <p:output port="result" /> <p:import href="sub-pipe.xpl" /> <jmp:sub-pipe /> </p:declare-step> Thanks, -James
Received on Sunday, 9 November 2008 22:39:31 UTC