<?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">

<!--
    1072: When a form is entered, the prompt counter is initialised to
          1 for every <initial>. Thus the prompt with count=1 will always
          be played first for any <initial> item. 
-->

  <catch>
    <conf:comment>
      Toplevel caught event <value expr="_event"/>
    </conf:comment>
    <conf:fail expr="_event"/>
  </catch>

  <var name="prompt" expr="'oops'"/>

  <form id="first">
    <noinput>
      <reprompt/>
    </noinput>

    <conf:grammar utterance="alpha">
      <conf:key name="f1" value="9999"/>
    </conf:grammar>

    <initial name="i1">
      <conf:speech value="alpha"/>
      <prompt count="1"> <value expr="prompt = ' '"/> </prompt>
      <prompt count="2"> <value expr="prompt = 'ouch'"/> </prompt>
    </initial>

    <field name="f1">
      <filled>
        <if cond="prompt != ' '">
          <conf:fail reason="The right prompt was not played."/>
        </if>
        <conf:pass/>
      </filled>
    </field>

    <block>
      <conf:fail reason="Shouldn't have arrived here."/>
    </block>
  </form>

</vxml>
