<?xml version="1.0"?>
<!-- @ Copyright 1998-2003 W3C (MIT, ERCIM, Keio), All Rights Reserved. See http://www.w3.org/Consortium/Legal/. @ -->
<vxml version="2.0" 
  xmlns="http://www.w3.org/2001/vxml" 
  xmlns:conf="http://www.w3.org/2002/vxml-conformance"
>

<!-- Assertion 1095
After a form level grammar is matched, a form level <filled> element will be queued 
for execution if at least one of the fields listed in the namelist of the <filled> 
has just been assigned a value and the mode is "any".
-->

  <catch><conf:fail expr="'catch-all caught ' + _event"/></catch>

  <form>
 
    <conf:grammar utterance="alpha">
      <conf:key name="x" value="valueX"/>
    </conf:grammar>

    <filled namelist="y z">
      <conf:fail reason="this filled element should never be executed, since y or z will not ever be assigned a value."/>
    </filled>

    <filled mode="any" namelist="x y">
      <if cond="x==undefined &amp;&amp; y==undefined">
        <conf:fail reason="x and y are both undefined, so this form level filled element should not be executed."/>
      <else/>
        <conf:pass/>
      </if>
    </filled>

    <initial>
      <conf:speech value="alpha"/>
    </initial>

    <field name="x"/>

    <field name="y"/>
 
    <field name="z"/>

    <block>
      <conf:fail reason="should of exited in form level filled element."/>
    </block>

  </form>

</vxml>
