Re: Possible conditional construct for discussion

Here's the example with flows and pipes:

<flow>
    <input name="source"/>
    <output name="result" from="inc.result"/>

    <choose name="cond">
       <input ref="source"/>
       <output name="result"/>
       <when test="/*/@version = 1">
         <pipe>
           <step name="ss" type="xslt">
             <with-input name="stylesheet"
                         uri="http://example.org/foo.xsl"/>
             <with-input name="source" from="source"/>
             <with-param name="xslt-params" value="p='xyz'"/>
           </step>
         </pipe>
       </when>
    </choose>

    <pipe name="inc">
       <input ref="cond.result"/>
       <output name="result"/>
       <step name="inc" type="xinclude">
          <with-input name="source" from="cond.result"/>
       </step>
    </pipe>
</flow>

--Alex Milowski

Received on Thursday, 22 June 2006 15:56:55 UTC