- From: Innovimax SARL <innovimax@gmail.com>
- Date: Fri, 10 Aug 2007 16:34:15 +0200
- 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 UTC