Steve -- Thanks for trying this. Here is some background before we get to your question -- from a previous email: <snippet> Caveats to bear in mind: a) The grammars (and the Grammar servlet) b) The JavaScript for serializing application.lastresult$ in the browser c) Subtleties in the VoiceXML markup </snippet>
(a) and (b) work together to get the expected serialization of application.lastresult$ from the platform for server side n-best canonicalization and validation by the RDC. This should completely demystify the process: Client [ http://cvs.apache.org/viewcvs.cgi/jakarta-taglibs-sandbox/rdc/src/.grammar/nbest.js?view=markup ] Server [ http://cvs.apache.org/viewcvs.cgi/jakarta-taglibs-sandbox/rdc/src/org/apache/taglibs/rdc/core/NBestResults.java?view=markup ] Also, all elements of an existing RDC (grammar, prompt file, private data model, tag impl) are a cohesive unit, each one expecting the other to fulfill their internal contracts. Now to the specifics of your question :-) <tag><![CDATA[<alphanumInput alphlist>]]></tag> 1) Why? :-) Please try to "translate" the grammar in the distro to its GSL equivalent. Adding slot names to the replaced grammar that don't exist in the original breaks the internal contracts. Please read alphlist as "GSL equivalent of $ object for root rule" for rest of this email :-) 2) Don't see alphlist being initialized (look at NULL rule in distro grammar) 3) alphlist is a string literal in <alphanumInput alphlist>, as evident from the tail of the GET uri (saying this as we move to POST ;-) 4) Additionally, I believe GSL would like all utterances in lower case (a for A) Is there (publicly available) documentation (though I suspect it won't help me much without access to the platform)? -Rahul On 4/27/05, Steve Hodson <[EMAIL PROTECTED]> wrote: > All, > > I'm currently in the process of altering the alphnum.grxml file so that the alphanum-test.jsp will work with Nuance. However having uttered "1 2 3 a b c" it simply asks for an alphanumeric value again (ad infinitum). What might be causing the page to repeat the question rather than process the response. Do I need to look elsewhere within RDC??? > > Cheers > > The log message is > __DEBUG_UTTERANCE = one two three a b c > __DEBUG_LENGTH = 1 > TRANSITION = http://localhost:7100/RDCTest/alphanum-test.jsp resulted in http://localhost:7100/RDCTest/alphanum-test.jsp;jsessionid=BBB451F4E51D1C347FFF18C7C6954EA6?alphanumResultNBest=0.699999988079071%253Bone%2520two%2520three%2520a%2520b%2520c%253BalphanumInput%253Dalphlist > EXECUTING_URL = http://localhost:7100/RDCTest/alphanum-test.jsp;jsessionid=BBB451F4E51D1C347FFF18C7C6954EA6?alphanumResultNBest=0.699999988079071%253Bone%2520two%2520three%2520a%2520b%2520c%253BalphanumInput%253Dalphlist<>http://localhost:7100/RDCTest/alphanum-test.jsp;jsessionid=BBB451F4E51D1C347FFF18C7C6954EA6?alphanumResultNBest=0.699999988079071%253Bone%2520two%2520three%2520a%2520b%2520c%253BalphanumInput%253Dalphlist > > My Grammar file is: > <?xml version="1.0" ?> > <grammar xmlns="http://www.w3.org/2001/06/grammar" > xmlns:nuance="http://voicexml.nuance.com/grammar" > xml:lang="en-UK" tag-format="Nuance" root="alphanum"> > > <rule id="alphanum" scope="public"> > <item repeat="1-6"> > <one-of> > <item><ruleref uri="#number"/><tag>insert-end(alphlist $return)</tag></item> > <item><ruleref uri="#hyphen"/><tag>insert-end(alphlist $return)</tag></item> > <item><ruleref uri="#alphabet"/><tag>insert-end(alphlist $return)</tag></item> > </one-of> > </item> > <tag><![CDATA[<alphanumInput alphlist>]]></tag> > </rule> > > <rule id="alphabet"> > <one-of> > <item> A </item> > <item> B </item> > <!-- the rest of the alphabet --> > <item> Y </item> > <item> Z </item> > </one-of> > <tag>return($string)</tag> > </rule> > > <rule id="number"> > <one-of> > <item> > <item> > <one-of> > <item>oh</item> > <item>nil</item> > <item>null</item> > <item>zero</item> > </one-of> > </item><tag>return("0")</tag> > </item> > <item>one <tag>return("1")</tag></item> > <item>two <tag>return("2")</tag></item> > <!-- Numbers one to nine inclusive --> > <item>eight <tag>return("8")</tag></item> > <item>nine <tag>return("9")</tag></item> > </one-of> > </rule> > </grammar> > > Steve Hodson > VoxGen > Manor House, 21 Soho Square > London W1D 3QP > > Email: [EMAIL PROTECTED] > Tel: +44 (0)870 350 2100 > Fax: +44 (0)870 350 2101 > Direct: +44 (0)20 7851 1025 > ##################################################################################### > Winner - e-Government excellence 2004. > Runner up - European Information Management awards 2004: > - The Premier Project Award. > - B2C Commerce Project Award. > - CRM Project Award. > > For more information visit us at www.voxgen.com > > ##################################################################################### > Note: > This message is for the named person's use only. It may contain confidential, > proprietary or legally privileged information. No confidentiality or privilege > is waived or lost by any mistransmission. If you receive this message in error, > please immediately delete it and all copies of it from your system, destroy any > hard copies of it and notify the sender. You must not, directly or indirectly, > use, disclose, distribute, print, or copy any part of this message if you are not > the intended recipient. Vox Generation Limited and any of its subsidiaries each > reserve the right to monitor all e-mail communications through its networks. > > Any views expressed in this message are those of the individual sender, except where > the message states otherwise and the sender is authorised to state them to be the > views of any such entity. > > Thank You. > ##################################################################################### > > ##################################################################################### > This e-mail message has been scanned for Viruses and Content and cleared > by NetIQ MailMarshal > ##################################################################################### > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
