<?xml version="1.0" encoding="UTF-8"?>

<!--
FILE INFORMATION

OMA Permanent Document
   File: OMA-SUP-XSD_mms_mtd-V1_3-20110913-A.txt
   Type: Text

Public Reachable Information
   Path: http://www.openmobilealliance.org/tech/profiles
   Name: mms_mtd-v1_3.xsd

NORMATIVE INFORMATION

Information about this file can be found in the MMS 1.3 specification available at
http://www.openmobilealliance.org/

Send comments to technical-comments@mail.openmobilealliance.org
  
LEGAL DISCLAIMER

Use of this document is subject to all of the terms and conditions
of the Use Agreement located at
http://www.openmobilealliance.org/UseAgreement.html,
provided, however, that section (d) under "Documents - Terms 
of Use" which states, "no modifications are made to such 
Documents" does not apply to your use.

The Open Mobile Alliance authorizes you to copy this document, 
provided that you retain all copyright and other proprietary 
notices contained in the original materials on any copies of the 
materials and that you comply strictly with these terms. This 
copyright permission does not constitute an endorsement of the 
products or services. The Open Mobile Alliance assumes no 
responsibility for errors or omissions in this document.

Each Open Mobile Alliance member has agreed to use reasonable
endeavors to inform the Open Mobile Alliance in a timely manner of
Essential IPR as it becomes aware that the Essential IPR is related
to the prepared or published specification. However, the members
do not have an obligation to conduct IPR searches. The declared
Essential IPR is publicly available to members and non-members of
the Open Mobile Alliance and may be found on the "OMA IPR
Declarations" list at http://www.openmobilealliance.org/ipr.html.
The Open Mobile Alliance has not conducted an independent IPR review
of this document and the information contained herein, and makes no
representations or warranties regarding third party IPR, including
without limitation patents, copyrights or trade secret rights. This
document may contain inventions for which you must obtain licenses
from third parties before making, using or selling the inventions.
Defined terms above are set forth in the schedule to the Open Mobile
Alliance Application Form.

NO REPRESENTATIONS OR WARRANTIES (WHETHER EXPRESS OR IMPLIED) ARE
MADE BY THE OPEN MOBILE ALLIANCE OR ANY OPEN MOBILE ALLIANCE MEMBER
OR ITS AFFILIATES REGARDING ANY OF THE IPR'S REPRESENTED ON THE "OMA
IPR DECLARATIONS" LIST, INCLUDING, BUT NOT LIMITED TO THE ACCURACY,
COMPLETENESS, VALIDITY OR RELEVANCE OF THE INFORMATION OR WHETHER OR
NOT SUCH RIGHTS ARE ESSENTIAL OR NON-ESSENTIAL.

THE OPEN MOBILE ALLIANCE IS NOT LIABLE FOR AND HEREBY DISCLAIMS ANY
DIRECT, INDIRECT, PUNITIVE, SPECIAL, INCIDENTAL, CONSEQUENTIAL, OR
EXEMPLARY DAMAGES ARISING OUT OF OR IN CONNECTION WITH THE USE OF
DOCUMENTS AND THE INFORMATION CONTAINED IN THE DOCUMENTS.

Copyright 2011 Open Mobile Alliance Ltd. All Rights Reserved.
Used with the permission of the Open Mobile Alliance Ltd. under the
terms set forth above.

-->

<xs:schema targetNamespace="urn:oma:xml:mms:mtd:1.3" xmlns="urn:oma:xml:mms:mtd:1.3" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
  <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/>
  <xs:element name="mmstemplate">
    <xs:annotation>
      <xs:documentation>root element</xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="head">
          <xs:annotation>
            <xs:documentation>descriptive information about the template itself</xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="title">
                <xs:annotation>
                  <xs:documentation>a human-readable name for the template</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:simpleContent>
                    <xs:extension base="xs:string">
                      <xs:attribute ref="xml:lang" use="optional"/>
                    </xs:extension>
                  </xs:simpleContent>
                </xs:complexType>
              </xs:element>
              <xs:element name="description" minOccurs="0">
                <xs:annotation>
                  <xs:documentation>a human-readable explanation of the template's purpose</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:simpleContent>
                    <xs:extension base="xs:string">
                      <xs:attribute ref="xml:lang" use="optional"/>
                    </xs:extension>
                  </xs:simpleContent>
                </xs:complexType>
              </xs:element>
              <xs:element name="author" minOccurs="0">
                <xs:annotation>
                  <xs:documentation>a human-readable explanation of the template's author</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:simpleContent>
                    <xs:extension base="xs:string">
                      <xs:attribute ref="xml:lang" use="optional"/>
                    </xs:extension>
                  </xs:simpleContent>
                </xs:complexType>
              </xs:element>
              <xs:element name="date" type="xs:date" minOccurs="0">
                <xs:annotation>
                  <xs:documentation>machine-readable identification of the template's creation date</xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="version" type="xs:float" minOccurs="0">
                <xs:annotation>
                  <xs:documentation>machine-readable identification of the template's version</xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="meta" minOccurs="0" maxOccurs="unbounded">
                <xs:complexType>
                  <xs:attribute name="content" type="xs:string" use="required"/>
                  <xs:attribute name="name" type="xs:string" use="required"/>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute ref="xml:lang" use="optional"/>
          </xs:complexType>
        </xs:element>
        <xs:element name="body">
          <xs:annotation>
            <xs:documentation>template body</xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="message" minOccurs="0">
                <xs:annotation>
                  <xs:documentation>describes resulting message settings</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:sequence minOccurs="0">
                    <xs:element name="to-header" minOccurs="0" maxOccurs="20">
                      <xs:annotation>
                        <xs:documentation>predefine the "To:" header value</xs:documentation>
                      </xs:annotation>
                      <xs:complexType>
                        <xs:simpleContent>
                          <xs:extension base="xs:string">
                            <xs:attribute name="editable" type="xs:boolean" use="optional" default="false"/>
                          </xs:extension>
                        </xs:simpleContent>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="cc-header" minOccurs="0" maxOccurs="20">
                      <xs:annotation>
                        <xs:documentation>predefine the "Cc:" header value</xs:documentation>
                      </xs:annotation>
                      <xs:complexType>
                        <xs:simpleContent>
                          <xs:extension base="xs:string">
                            <xs:attribute name="editable" type="xs:boolean" use="optional" default="false"/>
                          </xs:extension>
                        </xs:simpleContent>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="subject-header" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>predefine the "Subject:" header value</xs:documentation>
                      </xs:annotation>
                      <xs:complexType>
                        <xs:simpleContent>
                          <xs:extension base="xs:string">
                            <xs:attribute name="editable" type="xs:boolean" use="optional" default="false"/>
                            <xs:attribute ref="xml:lang" use="optional"/>
                          </xs:extension>
                        </xs:simpleContent>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                  <xs:attribute ref="xml:lang" use="optional"/>
                </xs:complexType>
              </xs:element>
              <xs:element name="wizard" minOccurs="0">
                <xs:annotation>
                  <xs:documentation>describes the wizard sequence</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="step" minOccurs="0" maxOccurs="unbounded">
                      <xs:annotation>
                        <xs:documentation>identify each wizard step</xs:documentation>
                      </xs:annotation>
                      <xs:complexType>
                        <xs:attribute name="guide" type="xs:string" use="optional" default=""/>
                        <xs:attribute name="app" type="ApplType" use="optional"/>
                        <xs:attribute name="param" type="xs:string" use="optional" default=""/>
                        <xs:attribute name="target-name" type="xs:anyURI" use="required"/>
                        <xs:attribute name="target-type" type="xs:string" use="required"/>
                        <xs:attribute name="required" type="xs:boolean" use="optional" default="false"/>
                        <xs:attribute ref="xml:lang" use="optional"/>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                  <xs:attribute ref="xml:lang" use="optional"/>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute ref="xml:lang" use="optional"/>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:simpleType name="ApplType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="still-camera"/>
      <xs:enumeration value="video-camera"/>
      <xs:enumeration value="text-input"/>
      <xs:enumeration value="rich-text-input"/>
      <xs:enumeration value="sound-recorder"/>
      <xs:enumeration value="file-manager"/>
      <xs:enumeration value="address-book"/>
    </xs:restriction>
  </xs:simpleType>
</xs:schema>