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

multiple subpipelines : how to count the number of outputs ?

From: Innovimax SARL <innovimax@gmail.com>
Date: Fri, 10 Aug 2007 16:34:15 +0200
Message-ID: <546c6c1c0708100734t25b22e61k410f66d3a0b97749@mail.gmail.com>
To: "XProc WG" <public-xml-processing-model-wg@w3.org>

While trying to fight with my fear on defaulting inputs and outputs on
pipeline I find this problem

How many outputs is defining this choose ? Is it a valid choose ?

 <p:choose>
   <p:when test="$operation = 'parameters'">
     <p:parameters/>
   </p:when>
   <p:when test="$operation = 'xslt'">
     <p:xslt>
       <p:input port="stylesheet"/>
         <p:document href="stylesheet.xsl"/>
       </p:input>
     </p:xslt>
   </p:when>
   <p:when test="$operation = 'xslfo'">
     <p:xsl-formatter uri="result.pdf"/>
   </p:when>
 </p:choose>

And what about

<p:pipeline>
 <p:option name="operation"/>
 <p:choose>
   <p:when test="$operation = 'parameters'">
     <p:parameters/>
   </p:when>
   <p:when test="$operation = 'xslt'">
     <p:xslt>
       <p:input port="stylesheet"/>
         <p:document href="stylesheet.xsl"/>
       </p:input>
     </p:xslt>
   </p:when>
   <p:when test="$operation = 'xslfo'">
     <p:xsl-formatter uri="result.pdf"/>
   </p:when>
   <p:otherwise>
     <p:error code="404" />
   </p:otherwise>
 </p:choose>
</p:pipeline>

(which is similar to 4.4.4 Examples)

Regards,

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 14:34:18 GMT

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