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

Re: Possible conditional construct for discussion

From: Norman Walsh <Norman.Walsh@Sun.COM>
Date: Thu, 29 Jun 2006 10:22:43 -0400
To: public-xml-processing-model-wg@w3.org
Message-ID: <87r718avnw.fsf@nwalsh.com>
/ 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 GMT

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