New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't output sequences from p:try (XD0007) #102

Closed
josteinaj opened this Issue Jun 2, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@josteinaj
Contributor

josteinaj commented Jun 2, 2013

This pipeline should output a sequence of two documents (works with calumet), but it fails with a XD0007 error:

<?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:inline>
            <doc/>
        </p:inline>
    </p:input>
    <p:output port="result" sequence="true"/>

    <p:try>
        <p:group>
            <p:output port="result" sequence="true"/>
            <p:identity>
                <p:input port="source">
                    <p:inline>
                        <doc1/>
                    </p:inline>
                    <p:inline>
                        <doc2/>
                    </p:inline>
                </p:input>
            </p:identity>
        </p:group>
        <p:catch>
            <p:output port="result" sequence="true"/>
            <p:identity>
                <p:input port="source">
                    <p:inline>
                        <doc>caught error</doc>
                    </p:inline>
                </p:input>
            </p:identity>
        </p:catch>
    </p:try>

</p:declare-step>
~$ calabash debug-catch-sequence.xpl 
jun 02, 2013 8:57:35 PM com.xmlcalabash.util.DefaultXProcMessageListener error
SEVERE: err:XD0007:XD0007
jun 02, 2013 8:57:35 PM com.xmlcalabash.drivers.Main error
SEVERE: If sequence is not specified on p:output, or has the value false, then it is a dynamic error if the step does not produce exactly one document on the declared port.

(using calabash 1.0.9)

@ndw

This comment has been minimized.

Show comment
Hide comment
@ndw

ndw Jul 26, 2013

Owner

Thanks. Fixed that for p:choose a while back but missed the p:try case.

Owner

ndw commented Jul 26, 2013

Thanks. Fixed that for p:choose a while back but missed the p:try case.

@ndw ndw closed this Jul 26, 2013

josteinaj added a commit to daisy/xprocspec that referenced this issue Jun 27, 2014

removed woraround for calabash issue 102 (p:try sequence output)
ndw/xmlcalabash1#102 was fixed in calabash 1.0.11, so 1.0.11 or newer is now required for xprocspec.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment