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

Re: multiple subpipelines : how to count the number of outputs ?

From: Innovimax SARL <innovimax@gmail.com>
Date: Fri, 10 Aug 2007 21:47:53 +0200
Message-ID: <546c6c1c0708101247l7a58ef82o4f5bbf6e03a36bcc@mail.gmail.com>
To: "Norman Walsh" <ndw@nwalsh.com>
Cc: public-xml-processing-model-wg@w3.org

On 8/10/07, Norman Walsh <ndw@nwalsh.com> wrote:
> I think, after the decisions we made yesterday, that this will work too:
>
> <p:pipeline>
>  <p:option name="operation"/>
>  <p:choose>
>    <p:when test="$operation = 'parameters'">
>      <p:output port="result" primary="yes">
>        <p:pipe step="params" port="result"/>
>      </p:output>
>      <p:parameters name="params"/>
>    </p:when>
>    <p:when test="$operation = 'xslt'">
>      <p:xslt name="xslt">
>        <p:input port="stylesheet"/>
>          <p:document href="stylesheet.xsl"/>
>        </p:input>
>      </p:xslt>
>    </p:when>
>    <p:when test="$operation = 'xslfo'">
>      <p:output port="result" primary="yes">
>        <p:pipe step="fo" port="result"/>
>      </p:output>
>      <p:xsl-formatter uri="result.pdf" name="fo"/>
>    </p:when>
>    <p:otherwise>
>      <p:output port="result" primary="yes"/>
>        <p:inline>
>          <nop/>
>        </p:inline>
>      </p:output>
>      <p:error code="404" />
>    </p:otherwise>
>  </p:choose>
> </p:pipeline>
>
> That is, the XSLT step gets a defaulted primary output port named
> 'result' so you only need to fiddle with the outputs on the steps
> where you don't have primary outputs.


Agreed, so you should correct
Example 3 and Example 7 in the spec

Mohamed
-- 
Innovimax SARL
Consulting, Training & XML Development
9, impasse des Orteaux
75020 Paris
Tel : +33 9 52 475787
Fax : +33 1 4356 1746
http://www.innovimax.fr
RCS Paris 488.018.631
SARL au capital de 10.000 
Received on Friday, 10 August 2007 19:47:57 GMT

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