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

Re: Possible conditional construct for discussion

From: Alex Milowski <alex@milowski.org>
Date: Thu, 22 Jun 2006 08:49:54 -0700
Message-ID: <449ABC22.8010904@milowski.org>
To: public-xml-processing-model-wg@w3.org

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 GMT

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