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

Possible conditional construct for discussion

From: Richard Tobin <richard@inf.ed.ac.uk>
Date: Thu, 22 Jun 2006 16:24:31 +0100 (BST)
To: public-xml-processing-model-wg@w3.org
Message-Id: <20060622152431.041246E9891@macintosh.inf.ed.ac.uk>

<pipeline xmlns="http://ltg.ed.ac.uk/pipeline">

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

  <choose name="cond">

    <output name="result">
 
    <when test="/*/@version = 1">
      <output name="result" from="ss.result"/>
      <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>
    </when>

    <otherwise>
      <output name="result" from="source"/>
    </otherwise>

  </choose>

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

</pipeline>
Received on Thursday, 22 June 2006 15:24:40 GMT

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