Share via


xmlns Attribute

  Microsoft Speech Technologies Homepage

Declares a namespace and identifies the schema of the format.

<prompt xmlns = "namespace">

Remarks

The namespace specified by the xmlns attribute is the standard Extensible Markup Language (XML) namespacing mechanism that is used with inline XML prompts 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. The namespace used here is for the Speech Synthesis Markup Language (SSML). This namespace allows SSML attributes to be used to enhance regular prompt text.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns:salt="http://www.saltforum.org/2002/SALT">
  <head>
    <object id="Speechtags" CLASSID="clsid:DCF68E5B-84A1-4047-98A4-0A72276D19CC" VIEWASTEXT></object>
  </head>
    
  <body>
    <?import namespace="salt" implementation="#Speechtags" />
    
    <salt:prompt id="Prompt1" xmlns="http://www.w3.org/2001/10/synthesis" lang="en-US">
      <salt:content type="application/ssml+xml" href="./greeting1.ssml" />
    </salt:prompt>
        
    <input type="button" name="BtnStart1" value="Start Prompt" OnClick="StartPlayback1()" id="Button1">

    <script language="JScript">
    <!--
      function StartPlayback1() {
        Prompt1.Start("You have <emphasis>five dollars</emphasis> left in your account.");  
      }
    -->
    </script>
  </body>
</html>

See Also

prompt Element |  lang attribute