Re: Possible conditional construct for discussion

/ Alex Milowski <alex@milowski.org> was heard to say:
| 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>

Doesn't this need an otherwise branch?

|    </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>

                                        Be seeing you,
                                          norm

-- 
Norman Walsh
XML Standards Architect
Sun Microsystems, Inc.

Received on Thursday, 29 June 2006 14:23:13 UTC