次の方法で共有


XML DOCTYPE Declaration

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/1.0" ... >
   ...
</grammar>