<?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">

<!--
    If an input from the collect phase matches a link than the
    associated link's event is thrown if present.
-->

  <catch>
    <conf:comment>
      Toplevel caught event <value expr="_event"/>
    </conf:comment>
    <conf:fail expr="_event"/>
  </catch>

  <link next="#fail">
    <conf:grammar utterance="bravo"/>
  </link>

  <link event="w3c.org.myevent">
    <conf:grammar utterance="alpha"/>
  </link>

  <form id="first">
    <catch event="w3c.org.myevent">
      <goto next="#pass"/>
    </catch>
    <field name="a">
      <conf:speech value="alpha"/>
    </field>
    <block>
      <conf:fail reason="Should not get here."/>
    </block>
  </form>

  <form id="pass">
    <block>
      <conf:pass/>
    </block>
  </form>

  <form id="fail">
    <block>
      <conf:fail reason="Should not get here, either."/>
    </block>
  </form>

</vxml>
