<?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 1097
After a form level grammar is matched, a form level <filled> element will be queued for
execution if the namelist is empty, the filled mode is "any" and at least one input 
item variable has just been assigned a value.
-->

  <catch><conf:fail expr="'catch-all caught ' + _event"/></catch>

  <form>
 
    <conf:grammar utterance="alpha">
      <conf:key name="x" value="valueX"/>
    </conf:grammar>

    <filled mode="any">
      <if cond="x==undefined &amp;&amp; y==undefined">
        <conf:fail reason="x and y both are 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"/>

    <block>
      <conf:fail reason="should of exited in form level filled element."/>
    </block>

  </form>

</vxml>
