W3C home > Mailing lists > Public > xproc-dev@w3.org > October 2010

Binding output port of p:choose

From: Florent Georges <fgeorges@fgeorges.org>
Date: Sun, 3 Oct 2010 20:41:08 +0100
Message-ID: <AANLkTimYQ45uEn4aqjMRCfCVb-dmNvit7wyWjttKCiXO@mail.gmail.com>
To: XProc Dev <xproc-dev@w3.org>
  Hi,

  I am trying to bind the result port of a p:choose/p:when to the
output port of my pipeline, which has another name:

    <p:declare-step xmlns:p="http://www.w3.org/ns/xproc"
                    name="pipeline"
                    version="1.0">

       <p:output port="my-result">
          <p:pipe port="result" step="s"/>
       </p:output>

       <p:choose name="s">
          <p:when test="true()">
             <p:identity>
                <p:input port="source">
                   <p:inline>
                      <true/>
                   </p:inline>
                </p:input>
             </p:identity>
          </p:when>
       </p:choose>

    </p:declare-step>

  But when I execute it with Calabash, I get the error "XE0001:
Unreadable port: result on s".  I guess I missed (again) something
obvious, but what?

  Best regards,

-- 
Florent Georges
http://fgeorges.org/
Received on Sunday, 3 October 2010 19:42:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 3 October 2010 19:42:06 GMT