Skip to content
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
Closed

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

josteinaj opened this issue Jun 2, 2013 · 1 comment

Comments

@josteinaj
Copy link
Contributor

@josteinaj 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
Copy link
Owner

@ndw 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
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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.