Share via


XML DOCTYPE Declaration

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Specifies a reference to a grammar's Document Type Definition (DTD), if applicable. In an XML grammar document, the DOCTYPE declaration is followed by the root grammar element.

Example

The following example illustrates referencing an external DTD.

<?xml encoding="ISO-8859-1"?>

<!DOCTYPE grammar PUBLIC "-//W3C//DTD GRAMMAR 1.0//EN"
   "http://www.w3.org/TR/speech-grammar/grammar.dtd">

      <grammar version="1.0" xmlns="http://www.w3.org/2001/06/grammar"
 xml:lang="en-US" tag-format="semantics-ms/1.0" ... >
...
</grammar>

See Also

Concepts

Grammar XML