When using finite-state devices to perform various functions, it is
beneficial to use finite state devices representing regular grammars with
terminals having markup-language-based semantics. By using
markup-language-based symbols in the finite state devices, it is possible
to generate valid markup-language expressions by concatenating the
symbols representing the result of the performed function. The
markup-language expression can be used by other applications and/or
devices. Finite-state devices are used to convert strings of words and
gestures into valid markup-language, for example, XML, expressions that
can be used, for example, to provide an application program interface to
underlying system applications.