-- 作者:ripoff
-- 发布时间:8/6/2008 1:27:00 PM
-- 帮忙看一下voicexml错在哪里
<?xml version="1.0" ?> <!DOCTYPE vxml PUBLIC "-//W3C//DTD VOICEXML 2.1//EN" "http://www.w3.org/TR/voicexml21/vxml.dtd"> <vxml version="2.1" xmlns:xsi="http://www/w3/org/2001/vxml"> <form> <!-- If nothing else is specified, the first <form> that is encountered is used as initial dialog --> <field name="ticket_num" type="digits"> <prompt> Read the 12 digit number from your ticket. </prompt> <help>The 12 digit number is to the lower left.</help> <filled> <if cond="ticket_num.length != 12"> <prompt> Sorry, I didn't hear exactly 12 digits. </prompt> <assign name="ticket_num" expr="undefined"/> <else/> <prompt> I heard <say-as interpret-as="vxml:digits"> <value expr="ticket_num"/></say-as> </prompt> </if> </filled> </field> <field name="passwd" type="digits"> <prompt> input the password. </prompt> <filled> <if cond="passwd.length != 6"> <prompt> Sorry, I didn't hear exactly 6 digits. </prompt> <else/> <prompt> I heard <say-as interpret-as="vxml:digits"> <value expr="passwd"/></say-as> </prompt> </if> </filled> </field> <block> <prompt> your ticket name is <value expr="ticket_num"/> and your password is <value expr="passwd"/>. </prompt> </block> <subdialog name="get_score" srcexpr="'http://172.16.3.98/get_score.asp?code='+<value expr="ticket_num"/>+'&subject='+<value expr="passwd"/>"/> <filled> <prompt>your score is<value expr="getString(get_score.subject_score)"/></prompt> </filled> </subdialog> </form> </vxml>
|