<?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 1105
<goto nextitem> will cause the target form item's prompt to be played even if it has 
already been visited.
-->

  <catch><conf:fail expr="'catch-all caught ' + _event"/></catch>

  <form>
 
    <var name="promptOnePlayed" expr="'oops'"/>
    <var name="promptTwoPlayed" expr="'oops'"/>
  
    <field name="one">
      <prompt count="2"> 
  <value expr="promptOnePlayed=' '"/>
      </prompt>
      <conf:speech value="alpha"/>
      <conf:grammar utterance="alpha"/>
      <filled> 
        <if cond="two != undefined">
          <if cond="promptOnePlayed==' '">
            <conf:pass/>
          <else/>
            <conf:fail reason="Prompt was 1 not played after goto nextitem and it should of been."/>
          </if>
        </if>
        <goto nextitem="two"/>  <!-- Check if prompts play on a field not yet visited after goto. -->
      </filled>
    </field>

    
    <field name="two">
      <prompt> 
  <value expr="promptTwoPlayed=' '"/>
      </prompt>
      <conf:speech value="bravo"/>
      <conf:grammar utterance="bravo"/>
      <filled> 
        <if cond="promptTwoPlayed==' '">
          <assign name="promptOnePlayed" expr="'oops'"/>
          <goto nextitem="one"/> <!-- Check if prompts play on a field already visited after goto. -->
        <else/>
          <conf:fail reason="Prompt 2 was not played after goto nextitem and it should of been."/>
        </if>
      </filled>
    </field>

  
  </form>

</vxml>
