Home > Articles > Web Services > XML

  • Print
  • + Share This
This chapter is from the book

This chapter is from the book

3.33 nomatch

Element type



cond | count


field | form | initial | menu | object | record | subdialog | transfer | vxml


assign | audio | clear | disconnect | enumerate | exit | goto | if | log | prompt | reprompt | return | script | submit | throw | value | var


A shorthand that handles the nomatch event.


<!ELEMENT nomatch (%executable.content;)* >
<!ATTLIST nomatch
  %event.handler.attrs; >

Language model



  • cond : expression = true

    This event handler will only be executed if this ECMAScript expression evaluates to true.

  • count : integer

    The event handler should be run only when the counter associated with a menu, form, or form item is equal to the quantity specified by this attribute. In the case where there is no count value equal to the counter, than the nomatch with the lowest count value, which is greater than the counter, will be selected. When the counter is greater than all count values, the catch with the highest count value will be selected.


  • executable.content

    To be executed when this nomatch element handles a nomatch event.


Example 3-39 Using nomatch to handle unrecognized responses

<?xml version="1.0" encoding="iso-8859-1"?>
<vxml version="1.0">
  <form id="flavor">
    <field name="selection">
        Please say one of the following flavors:
        chocolate, vanilla, or strawberry.
      <catch event="nomatch noinput" count="1">
        Select from chocolate, vanilla, or strawberry.
      <nomatch count="2">
        Say either chocolate, vanilla, or strawberry.
      <noinput count="2">Say something.</noinput>
      <catch event="nomatch noinput" count="3">
        Now exiting<disconnect/>
    <filled>Your selection is being prepared.</filled>
  • + Share This
  • 🔖 Save To Your Account