<mark>

Places a marker into a text or element sequence.

Syntax

<mark
    name = "CDATA"
    nameexpr = "CDATA"

/>

Attributes

Attribute

Data Type

Required?

Default

Description

name

CDATA

no

NA

Name associated with this mark.

nameexpr

CDATA

no

NA

ECMAScript expression that evaluates to the mark name.

Details

Although the VoiceXML Interpreter supports this element, it does not currently support mark notifications, so the lastresult$.markname and lastresult$.marktime variables (and the corresponding form item variables) are never set.

Parents

<audio>, <choice>, <emphasis>, <enumerate>, <p>, <prompt>, <prosody>, <s>, <voice>

Children

None.

Example

<?xml version="1.0" encoding="UTF-8"?>
<vxml version="2.1" xmlns="http://www.w3.org/2001/vxml">
    <var name="played_ad" expr="false"/>
    <form>   
        <field name="jacket">
            <prompt>
                <mark name="order_start"/>
                    Fleece jackets are available in a wide array of colors,
                        including red, green, purple, brown, blue, and black. You
                        won't find a better price.
                <mark name="order_end"/>
                <break time="500ms"/>
                    Say the name of the color you want to view. 
                        For example, say purple.
            </prompt>
        <grammar type="application/srgs+xml" src="jackets.grxml"/>
            <filled>
                <if cond="typeof(jacket$.markname) == 'string' &amp;&amp;
                   (jacket$.markname=='order_end' || 
                   (jacket$.markname=='order_start' &amp;&amp;
                      jacket$.marktime &gt;= 5000))">
                   <assign jacket="played_order" expr="true"/>
                <else/>
                    <assign jacket="played_order" expr="false"/>
                </if>
            </filled>
        </field>
    </form>
</vxml>