home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2003 October / INTERNET108.ISO / pc / software / windows / building / xmlspy / xmlspyentcomplete5.exe / Data1.cab / _F689FCF3C64C4F70BB5E7284E27A3A74 < prev    next >
Encoding:
Extensible Markup Language  |  2003-02-12  |  13.3 KB  |  350 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
  3.     <xsd:annotation>
  4.         <xsd:documentation>SSML 1.0 Core Schema (20021129)</xsd:documentation>
  5.     </xsd:annotation>
  6.     <xsd:annotation>
  7.         <xsd:documentation>
  8. Copyright 1998-2002 W3C (MIT, INRIA, Keio),
  9. All Rights Reserved. Permission to use, copy, modify and
  10. distribute the SSML core schema and its accompanying documentation
  11. for any purpose and without fee is hereby granted in
  12. perpetuity, provided that the above copyright notice and this
  13. paragraph appear in all copies.  The copyright holders make no
  14. representation about the suitability of the schema for any purpose. 
  15. It is provided "as is" without expressed or implied warranty.
  16. </xsd:documentation>
  17.     </xsd:annotation>
  18.     <xsd:annotation>
  19.         <xsd:documentation>Importing dependent namespaces</xsd:documentation>
  20.     </xsd:annotation>
  21.     <xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/>
  22.     <xsd:annotation>
  23.         <xsd:documentation>General Datatypes</xsd:documentation>
  24.     </xsd:annotation>
  25.     <xsd:simpleType name="duration">
  26.         <xsd:annotation>
  27.             <xsd:documentation>Duration follows "Times" in CCS
  28.             specification; e.g. "25ms", "3s" 
  29.             </xsd:documentation>
  30.         </xsd:annotation>
  31.         <xsd:restriction base="xsd:string">
  32.             <xsd:pattern value="(\+)?([0-9]*\.)?[0-9]+(ms|s)"/>
  33.         </xsd:restriction>
  34.     </xsd:simpleType>
  35.     <xsd:simpleType name="number">
  36.         <xsd:annotation>
  37.             <xsd:documentation>number: e.g. 10, 5.5, 1.5, 9., .45 
  38.               </xsd:documentation>
  39.         </xsd:annotation>
  40.         <xsd:restriction base="xsd:string">
  41.             <xsd:pattern value="[0-9]+|[0-9]+.[0-9]*|[0-9]*.[0-9]+"/>
  42.         </xsd:restriction>
  43.     </xsd:simpleType>
  44.     <xsd:simpleType name="relative">
  45.         <xsd:annotation>
  46.             <xsd:documentation>Modeled on number datatype: e.g. +4.5, -.45
  47.               </xsd:documentation>
  48.         </xsd:annotation>
  49.         <xsd:restriction base="xsd:string">
  50.             <xsd:pattern value="[+-]([0-9]+|[0-9]+.[0-9]*|[0-9]*.[0-9]+)"/>
  51.         </xsd:restriction>
  52.     </xsd:simpleType>
  53.     <xsd:simpleType name="percent">
  54.         <xsd:annotation>
  55.             <xsd:documentation>Modeled on number datatype: e.g. +4.5%, -.45%
  56.               </xsd:documentation>
  57.         </xsd:annotation>
  58.         <xsd:restriction base="xsd:string">
  59.             <xsd:pattern value="[+-]?([0-9]+|[0-9]+.[0-9]*|[0-9]*.[0-9]+)%"/>
  60.         </xsd:restriction>
  61.     </xsd:simpleType>
  62.     <xsd:simpleType name="semitone">
  63.         <xsd:annotation>
  64.             <xsd:documentation>Modeled on relative datatype: e.g. +4.5st, -.45st
  65.               </xsd:documentation>
  66.         </xsd:annotation>
  67.         <xsd:restriction base="xsd:string">
  68.             <xsd:pattern value="[+-]([0-9]+|[0-9]+.[0-9]*|[0-9]*.[0-9]+)st"/>
  69.         </xsd:restriction>
  70.     </xsd:simpleType>
  71.     <xsd:simpleType name="hertz.number">
  72.         <xsd:annotation>
  73.             <xsd:documentation>number Hertz: e.g. 10Hz, 5.5Hz, 1.5Hz,, 9.Hz,, .45Hz 
  74.               </xsd:documentation>
  75.         </xsd:annotation>
  76.         <xsd:restriction base="xsd:string">
  77.             <xsd:pattern value="([0-9]+|[0-9]+.[0-9]*|[0-9]*.[0-9]+)Hz"/>
  78.         </xsd:restriction>
  79.     </xsd:simpleType>
  80.     <xsd:simpleType name="hertz.relative">
  81.         <xsd:annotation>
  82.             <xsd:documentation>relative Hertz: e.g. +10Hz, -5.5Hz, +1.5Hz, +9.Hz,+.45Hz 
  83.               </xsd:documentation>
  84.         </xsd:annotation>
  85.         <xsd:restriction base="xsd:string">
  86.             <xsd:pattern value="[+-]([0-9]+|[0-9]+.[0-9]*|[0-9]*.[0-9]+)Hz"/>
  87.         </xsd:restriction>
  88.     </xsd:simpleType>
  89.     <xsd:simpleType name="volume.number">
  90.         <xsd:annotation>
  91.             <xsd:documentation>Modeled on number datatype: 0.0 - 100.0
  92.         </xsd:documentation>
  93.         </xsd:annotation>
  94.         <xsd:restriction base="xsd:float">
  95.             <xsd:minInclusive value="0.0"/>
  96.             <xsd:maxInclusive value="100.0"/>
  97.             <xsd:pattern value="[0-9]+|[0-9]+.[0-9]*|[0-9]*.[0-9]+"/>
  98.         </xsd:restriction>
  99.     </xsd:simpleType>
  100.     <xsd:simpleType name="height.scale">
  101.         <xsd:annotation>
  102.             <xsd:documentation>descriptive values for height</xsd:documentation>
  103.         </xsd:annotation>
  104.         <xsd:restriction base="xsd:string">
  105.             <xsd:enumeration value="x-high"/>
  106.             <xsd:enumeration value="high"/>
  107.             <xsd:enumeration value="medium"/>
  108.             <xsd:enumeration value="low"/>
  109.             <xsd:enumeration value="x-low"/>
  110.             <xsd:enumeration value="default"/>
  111.         </xsd:restriction>
  112.     </xsd:simpleType>
  113.     <xsd:simpleType name="speed.scale">
  114.         <xsd:annotation>
  115.             <xsd:documentation>descriptive values for speed</xsd:documentation>
  116.         </xsd:annotation>
  117.         <xsd:restriction base="xsd:string">
  118.             <xsd:enumeration value="x-fast"/>
  119.             <xsd:enumeration value="fast"/>
  120.             <xsd:enumeration value="medium"/>
  121.             <xsd:enumeration value="slow"/>
  122.             <xsd:enumeration value="x-slow"/>
  123.             <xsd:enumeration value="default"/>
  124.         </xsd:restriction>
  125.     </xsd:simpleType>
  126.     <xsd:simpleType name="volume.scale">
  127.         <xsd:annotation>
  128.             <xsd:documentation>descriptive values for volume</xsd:documentation>
  129.         </xsd:annotation>
  130.         <xsd:restriction base="xsd:string">
  131.             <xsd:enumeration value="silent"/>
  132.             <xsd:enumeration value="x-soft"/>
  133.             <xsd:enumeration value="soft"/>
  134.             <xsd:enumeration value="medium"/>
  135.             <xsd:enumeration value="loud"/>
  136.             <xsd:enumeration value="x-loud"/>
  137.             <xsd:enumeration value="default"/>
  138.         </xsd:restriction>
  139.     </xsd:simpleType>
  140.     <xsd:simpleType name="pitch.datatype">
  141.         <xsd:union memberTypes="hertz.number hertz.relative percent semitone height.scale"/>
  142.     </xsd:simpleType>
  143.     <xsd:simpleType name="range.datatype">
  144.         <xsd:union memberTypes="hertz.number hertz.relative percent semitone height.scale"/>
  145.     </xsd:simpleType>
  146.     <xsd:simpleType name="rate.datatype">
  147.         <xsd:union memberTypes="number relative percent speed.scale"/>
  148.     </xsd:simpleType>
  149.     <xsd:simpleType name="volume.datatype">
  150.         <xsd:union memberTypes="volume.number relative percent volume.scale"/>
  151.     </xsd:simpleType>
  152.     <xsd:simpleType name="contour.datatype">
  153.         <xsd:annotation>
  154.             <xsd:documentation>ContourPoint+, where ContourPoint is
  155.         (Number%,pitch.datatype) </xsd:documentation>
  156.         </xsd:annotation>
  157.         <xsd:restriction base="xsd:string">
  158.             <xsd:pattern value="(\(([0-9]+|[0-9]+.[0-9]*|[0-9]*.[0-9]+)%,(([0-9]+|[0-9]+.[0-9]*|[0-9]*.[0-9]+)Hz|[+-]([0-9]+|[0-9]+.[0-9]*|[0-9]*.[0-9]+)Hz|[+-]?([0-9]+|[0-9]+.[0-9]*|[0-9]*.[0-9]+)%|[+-]([0-9]+|[0-9]+.[0-9]*|[0-9]*.[0-9]+)st|x-high|high|medium|low|x-low|default)\))+"/>
  159.         </xsd:restriction>
  160.     </xsd:simpleType>
  161.     <xsd:simpleType name="gender.datatype">
  162.         <xsd:restriction base="xsd:string">
  163.             <xsd:enumeration value="male"/>
  164.             <xsd:enumeration value="female"/>
  165.             <xsd:enumeration value="neutral"/>
  166.         </xsd:restriction>
  167.     </xsd:simpleType>
  168.     <xsd:simpleType name="level.datatype">
  169.         <xsd:restriction base="xsd:string">
  170.             <xsd:enumeration value="strong"/>
  171.             <xsd:enumeration value="moderate"/>
  172.             <xsd:enumeration value="none"/>
  173.             <xsd:enumeration value="reduced"/>
  174.         </xsd:restriction>
  175.     </xsd:simpleType>
  176.     <xsd:simpleType name="size.datatype">
  177.         <xsd:restriction base="xsd:string">
  178.             <xsd:enumeration value="x-small"/>
  179.             <xsd:enumeration value="small"/>
  180.             <xsd:enumeration value="medium"/>
  181.             <xsd:enumeration value="large"/>
  182.             <xsd:enumeration value="x-large"/>
  183.             <xsd:enumeration value="none"/>
  184.         </xsd:restriction>
  185.     </xsd:simpleType>
  186.     <xsd:simpleType name="version.datatype">
  187.         <xsd:restriction base="xsd:NMTOKEN"/>
  188.     </xsd:simpleType>
  189.     <xsd:simpleType name="breaktime.datatype">
  190.         <xsd:union memberTypes="duration size.datatype"/>
  191.     </xsd:simpleType>
  192.     <xsd:annotation>
  193.         <xsd:documentation>Attributes and Groups</xsd:documentation>
  194.     </xsd:annotation>
  195.     <xsd:attributeGroup name="speak.attribs">
  196.         <xsd:attribute name="version" type="version.datatype"/>
  197.         <xsd:attribute ref="xml:lang"/>
  198.         <xsd:attribute ref="xml:base"/>
  199.     </xsd:attributeGroup>
  200.     <xsd:annotation>
  201.         <xsd:documentation>Content Models</xsd:documentation>
  202.     </xsd:annotation>
  203.     <xsd:group name="allowed-within-sentence">
  204.         <xsd:choice>
  205.             <xsd:element ref="aws"/>
  206.         </xsd:choice>
  207.     </xsd:group>
  208.     <xsd:group name="paragraph.class">
  209.         <xsd:sequence>
  210.             <xsd:choice minOccurs="0" maxOccurs="unbounded">
  211.                 <xsd:group ref="allowed-within-sentence"/>
  212.                 <xsd:element ref="sentence"/>
  213.                 <xsd:element ref="s"/>
  214.             </xsd:choice>
  215.         </xsd:sequence>
  216.     </xsd:group>
  217.     <xsd:group name="sentence.class">
  218.         <xsd:sequence>
  219.             <xsd:choice minOccurs="0" maxOccurs="unbounded">
  220.                 <xsd:group ref="allowed-within-sentence"/>
  221.             </xsd:choice>
  222.         </xsd:sequence>
  223.     </xsd:group>
  224.     <xsd:group name="sentenceAndStructure.class">
  225.         <xsd:sequence>
  226.             <xsd:choice minOccurs="0" maxOccurs="unbounded">
  227.                 <xsd:group ref="allowed-within-sentence"/>
  228.                 <xsd:group ref="structure"/>
  229.             </xsd:choice>
  230.         </xsd:sequence>
  231.     </xsd:group>
  232.     <xsd:group name="descAndSentenceAndStructure.class">
  233.         <xsd:sequence>
  234.             <xsd:choice minOccurs="0" maxOccurs="unbounded">
  235.                 <xsd:group ref="sentenceAndStructure.class"/>
  236.                 <xsd:element ref="desc"/>
  237.             </xsd:choice>
  238.         </xsd:sequence>
  239.     </xsd:group>
  240.     <xsd:group name="speak.class">
  241.         <xsd:sequence>
  242.             <xsd:choice minOccurs="0" maxOccurs="unbounded">
  243.                 <xsd:element name="metadata">
  244.                     <xsd:complexType>
  245.                         <xsd:choice minOccurs="0" maxOccurs="unbounded">
  246.                             <xsd:any namespace="##other" processContents="lax"/>
  247.                         </xsd:choice>
  248.                         <xsd:anyAttribute namespace="##any" processContents="strict"/>
  249.                     </xsd:complexType>
  250.                 </xsd:element>
  251.                 <xsd:element name="lexicon">
  252.                     <xsd:complexType>
  253.                         <xsd:attribute name="uri" type="xsd:anyURI" use="required"/>
  254.                         <xsd:attribute name="type" type="xsd:string"/>
  255.                     </xsd:complexType>
  256.                 </xsd:element>
  257.                 <xsd:group ref="sentenceAndStructure.class"/>
  258.             </xsd:choice>
  259.         </xsd:sequence>
  260.     </xsd:group>
  261.     <xsd:annotation>
  262.         <xsd:documentation>Elements</xsd:documentation>
  263.     </xsd:annotation>
  264.     <xsd:element name="aws" abstract="true">
  265.         <xsd:annotation>
  266.             <xsd:documentation>The 'allowed-within-sentence' group uses this abstract element.</xsd:documentation>
  267.         </xsd:annotation>
  268.     </xsd:element>
  269.     <xsd:element name="struct" abstract="true"/>
  270.     <xsd:group name="structure">
  271.         <xsd:choice>
  272.             <xsd:element ref="struct"/>
  273.         </xsd:choice>
  274.     </xsd:group>
  275.     <xsd:element name="speak" type="speak"/>
  276.     <xsd:complexType name="speak" mixed="true">
  277.         <xsd:group ref="speak.class"/>
  278.         <xsd:attributeGroup ref="speak.attribs"/>
  279.     </xsd:complexType>
  280.     <xsd:element name="paragraph" type="paragraph" substitutionGroup="struct"/>
  281.     <xsd:element name="p" type="paragraph" substitutionGroup="struct"/>
  282.     <xsd:complexType name="paragraph" mixed="true">
  283.         <xsd:group ref="paragraph.class"/>
  284.         <xsd:attribute ref="xml:lang"/>
  285.     </xsd:complexType>
  286.     <xsd:element name="sentence" type="sentence" substitutionGroup="struct"/>
  287.     <xsd:element name="s" type="sentence" substitutionGroup="struct"/>
  288.     <xsd:complexType name="sentence" mixed="true">
  289.         <xsd:group ref="sentence.class"/>
  290.         <xsd:attribute ref="xml:lang"/>
  291.     </xsd:complexType>
  292.     <xsd:element name="voice" type="voice" substitutionGroup="aws"/>
  293.     <xsd:complexType name="voice" mixed="true">
  294.         <xsd:group ref="sentenceAndStructure.class"/>
  295.         <xsd:attribute name="gender" type="gender.datatype"/>
  296.         <xsd:attribute name="age" type="xsd:positiveInteger"/>
  297.         <xsd:attribute name="variant" type="xsd:integer"/>
  298.         <xsd:attribute name="name" type="xsd:string"/>
  299.         <xsd:attribute ref="xml:lang"/>
  300.     </xsd:complexType>
  301.     <xsd:element name="prosody" type="prosody" substitutionGroup="aws"/>
  302.     <xsd:complexType name="prosody" mixed="true">
  303.         <xsd:group ref="sentenceAndStructure.class"/>
  304.         <xsd:attribute name="pitch" type="pitch.datatype"/>
  305.         <xsd:attribute name="contour" type="contour.datatype"/>
  306.         <xsd:attribute name="range" type="range.datatype"/>
  307.         <xsd:attribute name="rate" type="rate.datatype"/>
  308.         <xsd:attribute name="duration" type="duration"/>
  309.         <xsd:attribute name="volume" type="volume.datatype" default="100.0"/>
  310.     </xsd:complexType>
  311.     <xsd:element name="audio" type="audio" substitutionGroup="aws"/>
  312.     <xsd:complexType name="audio" mixed="true">
  313.         <xsd:group ref="descAndSentenceAndStructure.class"/>
  314.         <xsd:attribute name="src" type="xsd:anyURI"/>
  315.     </xsd:complexType>
  316.     <xsd:element name="desc" type="xsd:string"/>
  317.     <xsd:element name="emphasis" type="emphasis" substitutionGroup="aws"/>
  318.     <xsd:complexType name="emphasis" mixed="true">
  319.         <xsd:group ref="sentence.class"/>
  320.         <xsd:attribute name="level" type="level.datatype" default="moderate"/>
  321.     </xsd:complexType>
  322.     <xsd:element name="sub" type="sub" substitutionGroup="aws"/>
  323.     <xsd:complexType name="sub">
  324.         <xsd:simpleContent>
  325.             <xsd:extension base="xsd:string">
  326.                 <xsd:attribute name="alias" type="xsd:string" use="required"/>
  327.             </xsd:extension>
  328.         </xsd:simpleContent>
  329.     </xsd:complexType>
  330.     <xsd:element name="say-as" type="say-as" substitutionGroup="aws"/>
  331.     <xsd:complexType name="say-as" mixed="true">
  332.         <xsd:attribute name="interpret-as" type="xsd:NMTOKEN" use="required"/>
  333.         <xsd:attribute name="format" type="xsd:NMTOKEN"/>
  334.         <xsd:attribute name="detail" type="xsd:NMTOKEN"/>
  335.     </xsd:complexType>
  336.     <xsd:element name="phoneme" type="phoneme" substitutionGroup="aws"/>
  337.     <xsd:complexType name="phoneme" mixed="true">
  338.         <xsd:attribute name="ph" type="xsd:string" use="required"/>
  339.         <xsd:attribute name="alphabet" type="xsd:string"/>
  340.     </xsd:complexType>
  341.     <xsd:element name="break" type="break" substitutionGroup="aws"/>
  342.     <xsd:complexType name="break">
  343.         <xsd:attribute name="time" type="breaktime.datatype" default="medium"/>
  344.     </xsd:complexType>
  345.     <xsd:element name="mark" type="mark" substitutionGroup="aws"/>
  346.     <xsd:complexType name="mark">
  347.         <xsd:attribute name="name" type="xsd:ID" use="required"/>
  348.     </xsd:complexType>
  349. </xsd:schema>
  350.