W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > November 2007

Re: Does a primary output have to be connected in all branches?

From: Norman Walsh <ndw@nwalsh.com>
Date: Thu, 08 Nov 2007 08:37:05 -0500
To: public-xml-processing-model-wg@w3.org
Message-ID: <m2y7d8x3i6.fsf@nwalsh.com>
/ Innovimax SARL <innovimax@gmail.com> was heard to say:
| Not sure to fully understand
|
| You speak about primary output and then you say used in some branch...
|
| Can you draft an exaple ?

<p:load name="load" href="...">

<p:choose>
  <p:when test="false()">
    <p:identity>
      <p:input port="source">
        <p:pipe step="load" port="result"/>
      </p:input>
    </p:identity>
  </p:when>

  <p:otherwise>
    <p:identity>
      <p:input port="source">
        <p:inline>
          <doc/>
        </p:inline>
      </p:input>
    </p:identity>
  </p:otherwise>
</p:choose>

So in this case, the primary output port of the load step is connected in
one branche, but not another. And in this case will never be read.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Optimistic, even in the face of reality.
http://nwalsh.com/            | 

Received on Thursday, 8 November 2007 13:37:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:21:54 GMT