- From: Norman Walsh <ndw@nwalsh.com>
- Date: Fri, 10 Aug 2007 11:43:43 -0400
- To: public-xml-processing-model-wg@w3.org
- Message-ID: <87zm0z9yz4.fsf@nwalsh.com>
/ Innovimax SARL <innovimax@gmail.com> was heard to say: | 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> I don't know because the primary output port of p:xslt is not bound and that's an error. | 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> No, but *I think* this is: <p:pipeline> <p:option name="operation"/> <p:choose> <p:when test="$operation = 'parameters'"> <p:output port="result"> <p:pipe step="params" port="result"/> </p:output> <p:parameters name="params"/> </p:when> <p:when test="$operation = 'xslt'"> <p:output port="result"> <p:pipe step="xslt" port="result"/> </p:output> <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"> <p:pipe step="fo" port="result"/> </p:output> <p:xsl-formatter uri="result.pdf" name="fo"/> </p:when> <p:otherwise> <p:output port="result"> <p:inline> <nop/> </p:inline> </p:output> <p:error code="404" /> </p:otherwise> </p:choose> </p:pipeline> Be seeing you, norm -- Norman Walsh <ndw@nwalsh.com> | As the old hermit of Prague, that never http://nwalsh.com/ | saw pen and ink, very wittily said to | the niece of King Gorboduc, 'That that | is, is'.-- Shakespeare
Received on Friday, 10 August 2007 15:43:53 UTC