vxml-synthesis-extension.xsd
上传用户:xqtpzdz
上传日期:2022-05-21
资源大小:1764k
文件大小:5k
源码类别:

xml/soap/webservice

开发平台:

Visual C++

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsd:schema targetNamespace="http://www.w3.org/2001/vxml" 
  3. xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
  4. xmlns="http://www.w3.org/2001/vxml" elementFormDefault="qualified">
  5.     <xsd:annotation>
  6.         <xsd:documentation>VoiceXML 2.0 extension schema for SSML 1.0 (20030207) </xsd:documentation>
  7.     </xsd:annotation>
  8.     <xsd:annotation>
  9.         <xsd:documentation>
  10. Copyright 1998-2004 W3C (MIT, ERCIM, Keio), All Rights Reserved. Permission to
  11. use, copy, modify and distribute the VoiceXML SSML adaption schema and its
  12. accompanying documentation for any purpose and without fee is hereby granted
  13. in perpetuity, provided that the above copyright notice and this paragraph
  14. appear in all copies.  The copyright holders make no representation about the
  15. suitability of the schema for any purpose. It is provided "as is" without
  16. expressed or implied warranty.
  17. </xsd:documentation>
  18.     </xsd:annotation>
  19.     
  20.     <xsd:include schemaLocation="vxml-attribs.xsd"/>   
  21.     <xsd:annotation>
  22.         <xsd:documentation>Extension of SSML 1.0 no-namespace schema for use 
  23. in VoiceXML 2.0. Restrictions are defined in voicexml20-synthesis-restriction.xsd.
  24.  </xsd:documentation>
  25.     </xsd:annotation>
  26. <!-- <xsd:redefine schemaLocation="vxml-synthesis-restriction.xsd"> -->
  27. <xsd:redefine schemaLocation="synthesis-core.xsd">
  28.         <xsd:complexType name="say-as" mixed="true">
  29.             <xsd:annotation>
  30.                 <xsd:documentation>extends say-as type by allowing the value element as a child</xsd:documentation>
  31.             </xsd:annotation>
  32.             <xsd:complexContent>
  33.                 <xsd:extension base="say-as">
  34.             <xsd:choice minOccurs="0" maxOccurs="unbounded">
  35.                 <xsd:element ref="value"/>
  36.             </xsd:choice>
  37.     </xsd:extension>
  38.     </xsd:complexContent>
  39.         </xsd:complexType>
  40.         <xsd:complexType name="audio" mixed="true">
  41.             <xsd:annotation>
  42.                 <xsd:documentation>extends audio type with VoiceXML 'expr' and caching attributes</xsd:documentation>
  43.             </xsd:annotation>
  44.             <xsd:complexContent>
  45.                 <xsd:extension base="audio">
  46.                     <xsd:attributeGroup ref="Expr.attrib"/>
  47.                     <xsd:attributeGroup ref="Cache.attribs"/>
  48.                 </xsd:extension>
  49.             </xsd:complexContent>
  50.         </xsd:complexType>
  51.         <xsd:complexType name="mark">
  52.             <xsd:annotation>
  53.                 <xsd:documentation>extends mark type with VoiceXML 'nameexpr'</xsd:documentation>
  54.             </xsd:annotation>
  55.             <xsd:complexContent>
  56.                 <xsd:extension base="mark">
  57.                   <xsd:attribute name="nameexpr" type="Script.datatype"/>
  58.                 </xsd:extension>
  59.             </xsd:complexContent>
  60.         </xsd:complexType>
  61.      <xsd:complexType name="speak" mixed="true">
  62.          <xsd:annotation>
  63.              <xsd:documentation>extends speak type - add VoiceXML Prompt attributes</xsd:documentation>
  64.          </xsd:annotation>
  65.          <xsd:complexContent>
  66.              <xsd:extension base="speak">
  67.                 <xsd:attributeGroup ref="Prompt.attribs"/>
  68.              </xsd:extension>
  69.      </xsd:complexContent>
  70.      </xsd:complexType>
  71.      
  72. </xsd:redefine>
  73.     <xsd:element name="value" substitutionGroup="aws">
  74.         <xsd:annotation>
  75.             <xsd:documentation>value element is 'allowed-within-sentence' in SSML</xsd:documentation>
  76.         </xsd:annotation>
  77.         <xsd:complexType>
  78.       <xsd:attribute name="expr" type="Script.datatype" use="required"/>
  79.         </xsd:complexType>
  80.     </xsd:element>
  81.     <xsd:element name="enumerate" substitutionGroup="aws">
  82.         <xsd:annotation>
  83.             <xsd:documentation>enumerate element is 'allowed-within-sentence' in SSML</xsd:documentation>
  84.         </xsd:annotation>
  85.         <xsd:complexType mixed="true">
  86.             <xsd:choice minOccurs="0" maxOccurs="unbounded">
  87.                 <xsd:group ref="allowed-within-sentence"/>
  88.                 <xsd:group ref="structure"/>
  89.             </xsd:choice>
  90.         </xsd:complexType>
  91.     </xsd:element>
  92.     <xsd:element name="foreach" substitutionGroup="aws">
  93.         <xsd:complexType mixed="true">
  94.             <xsd:choice minOccurs="0" maxOccurs="unbounded">
  95.                <xsd:group ref="foreach.content"/>
  96.                <xsd:element ref="break"/>
  97.                <xsd:element ref="emphasis"/>
  98.                <xsd:element ref="mark"/>
  99.                <xsd:element ref="phoneme"/>
  100.                <xsd:element ref="prosody"/>
  101.                <xsd:element ref="say-as"/>
  102.                <xsd:element ref="sub"/>
  103.                <xsd:element ref="voice"/>
  104.                <xsd:element ref="metadata"/>
  105.                <xsd:group ref="structure"/>
  106.                <xsd:any namespace="##other" processContents="strict"/>
  107.             </xsd:choice>
  108.             <xsd:attribute name="item" type="RestrictedVariableName.datatype" use="required"/>
  109.             <xsd:attribute name="array" type="Script.datatype" use="required"/>
  110.         </xsd:complexType>
  111.     </xsd:element>
  112. </xsd:schema>