Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
![]() |
Declares a namespace for the grammar and identifies the schema of the grammar format. Optional.
| HTML | <grammar xmlns="nameSpace"> |
| JScript | grammar.xmlns = nameSpace |
Remarks
The namespace specified by the xmlns attribute is the standard XML namespacing mechanism that is used with inline XML grammars to declare a namespace and identify the schema of the format. More information about XML namespaces can be found at http://www.w3.org/TR/REC-xml-names/.
Example
The following code demonstrates the use of the xmlns attribute.
<salt:grammar xmlns="http://www.w3.org/2001/06/grammar" lang="en-US">
<grammar root="root" version="1.0" tag-format="semantics-ms/1.0">
<rule id="root">
<item repeat="0-1">from </item>
<ruleref name="#cities" />
</rule>
<rule id="cities">
<one-of>
<item> Cambridge </item>
<item> Seattle </item>
<item> London </item>
</one-of>
</rule>
</grammar>
</salt:grammar>
.jpg)