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: Richard Tobin <richard@inf.ed.ac.uk>
Date: Thu, 8 Nov 2007 10:06:40 +0000 (GMT)
To: "Innovimax SARL" <innovimax@gmail.com>, "Norman Walsh" <ndw@nwalsh.com>
Cc: public-xml-processing-model-wg@w3.org
Message-Id: <20071108100640.7AAA5284873@macpro.inf.ed.ac.uk>

> Not sure to fully understand
> 
> You speak about primary output and then you say used in some branch...
> 
> Can you draft an exaple ?


  <p:pipeline>
    ...
    <p:identity name="foo"/>

    <p:choose>
      <p:when ...>
        <p:identity>
          <p:input name="source">
             <p:pipe step="foo" port="result"/>
          </p:input>
        </p:identity>
      </p:when>
      <p:otherwise>
        <p:identity>
          <p:input name="source">
             <p:pipe step="someotherstep" port="result"/>
          </p:input>
        </p:identity>
      </p:otherwise>
    </p:choose>
    ...
  </p:pipeline>

The primary output of "foo" is read in the when branch of the choose,
but not in the otherwise.

-- Richard
Received on Thursday, 8 November 2007 10:07:06 GMT

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