1. A method for recognizing voice input, comprising: receiving a document that includes a specification of a datatype for which there exists a predefined grammar; 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, thereby allowing the speech recognition engine to use the locale-specific grammar in recognizing a voice input for the datatype.