VoiceXML: use block cond instead of field expr. For some reason the field expr doesn't work right in Opera.

This commit is contained in:
bringert
2007-01-18 17:58:40 +00:00
parent 6d19a584ea
commit aa16ddc912

View File

@@ -138,7 +138,8 @@ cat2form :: String -> CatQuestions -> VIdent -> [(VIdent, [VIdent])] -> XML
cat2form gr qs cat fs =
form (catFormId cat) $
[var "old" Nothing,
field "term" [("expr", "old.name != '?' ? old : undefined")]
blockCond "old.name != '?'" [assign "term" "old"],
field "term" []
[promptString (getCatQuestion cat qs),
vxmlGrammar (gr++"#"++catFormId cat)
]