Places a marker into a text or element sequence.
<mark
name = "CDATA"
nameexpr = "CDATA"
/>
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. |
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.
<audio>, <choice>, <emphasis>, <enumerate>, <p>, <prompt>, <prosody>, <s>, <voice>
None.
<?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' &&
(jacket$.markname=='order_end' ||
(jacket$.markname=='order_start' &&
jacket$.marktime >= 5000))">
<assign jacket="played_order" expr="true"/>
<else/>
<assign jacket="played_order" expr="false"/>
</if>
</filled>
</field>
</form>
</vxml>