11. A computer-readable storage medium storing instructions that when executed by a computer cause the computer to perform a method for recognizing voice input, the method comprising: receiving a document that includes a specification of a datatype for which there exists a predefined grammar, wherein the document that includes the specification of the datatype is a Multi-channel extensible Markup Language (MXML) document; generating a Voice eXtensible Markup Language (VoiceXML) document from the MXML document; obtaining a locale attribute for the datatype, wherein the locale attribute identifies a version of a language that is spoken in a locale; using the locale attribute to lookup a locale-specific grammar for the datatype; and communicating the locale-specific grammar to a speech recognition engine, wherein the locale-specific grammar comprises a gateway-specific transformer that is produced by a gateway driver, wherein the gateway driver is incorporated into a transformation framework, thereby allowing the speech recognition engine to use the locale-specific grammar in recognizing a voice input for the datatype; wherein communicating the locale-specific grammar fully specifies the set of phrases that can be recognized for the datatype.
11. A computer-readable storage medium storing instructions that when executed by a computer cause the computer to perform a method for recognizing voice input, the method comprising: receiving a document that includes a specification of a datatype for which there exists a predefined grammar, wherein the document that includes the specification of the datatype is a Multi-channel extensible Markup Language (MXML) document; generating a Voice eXtensible Markup Language (VoiceXML) document from the MXML document; obtaining a locale attribute for the datatype, wherein the locale attribute identifies a version of a language that is spoken in a locale; using the locale attribute to lookup a locale-specific grammar for the datatype; and communicating the locale-specific grammar to a speech recognition engine, wherein the locale-specific grammar comprises a gateway-specific transformer that is produced by a gateway driver, wherein the gateway driver is incorporated into a transformation framework, thereby allowing the speech recognition engine to use the locale-specific grammar in recognizing a voice input for the datatype; wherein communicating the locale-specific grammar fully specifies the set of phrases that can be recognized for the datatype. 19. The computer-readable storage medium of claim 11 , wherein communicating the locale-specific grammar to the speech recognition engine involves incorporating the grammar “in-line” into a VoiceXML document, and then communicating the VoiceXML document to the speech recognition engine.