servicewidget/themes/install-themes/hsps_manifest.xsd
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 19 Aug 2010 09:41:53 +0300
branchRCL_3
changeset 21 2b7283837edb
parent 0 5e5d6b214f4f
permissions -rw-r--r--
Revision: 201031 Kit: 201033

<?xml version="1.0" encoding="ISO-8859-1"?>

<!-- Validation of the HSPS manifest files -->

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">  

<!-- Version type -->
<xs:simpleType name="versiontype">           
  <xs:restriction base="xs:decimal">          
    <xs:pattern value="[0-9].[0-9]"/>
  </xs:restriction>    
</xs:simpleType>

<!-- Localized type -->
<xs:simpleType name="localizedtype">
  <xs:restriction base="xs:string">
    <xs:pattern value="[&#38;][q][t][n][_]([a-z_A-Z0-9])*[;]"/>
  </xs:restriction>
</xs:simpleType>

<!-- Filename type -->
<xs:simpleType name="filenametype">
  <xs:restriction base="xs:string">
    <xs:pattern value="([a-z_A-Z0-9])*"/>
  </xs:restriction>
</xs:simpleType>

<!-- Fileresource type -->
<xs:complexType name="fileresourcetype">       
  <xs:simpleContent>
    <xs:extension base="xs:string">      
      <xs:attribute name="mediatype">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="100"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>                            
    </xs:extension>
  </xs:simpleContent>                    
</xs:complexType>


<!-- Structure of a manifest file -->
<xs:element name="package">    
  <xs:complexType>
    <xs:sequence>
          
  	  <xs:element name="type"> 
    	  <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:pattern value="application|view|widget|template"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element> 
      
  	  <xs:element name="interfaceuid" type="xs:hexBinary"/>
  	      	          
      <xs:element name="provideruid" type="xs:hexBinary"/>              
      
      <xs:element name="configurationuid" type="xs:hexBinary"/>      
      
      <xs:element name="status" minOccurs="0" maxOccurs="unbounded"> 
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:pattern value="statusmakeactive|statuslicenceedefault|statuslicenceerestorable|statusoperatordefault|statususerdefault"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      
      <xs:element name="fullname" type="localizedtype"/> 
      
      <xs:element name="shortname" type="filenametype"/>
      
      <xs:element name="version" type="versiontype"/> 
            
      <xs:element name="filexml" type="xs:string"/> 
      
      <xs:element name="filedtd" type="xs:string"/>
      
      <xs:element name="fileresource" type="fileresourcetype" minOccurs="0" maxOccurs="unbounded"/>
      
      <xs:element name="localization" minOccurs="0">
        <xs:complexType>     
          <xs:sequence>                      
            <xs:element name="fileresource" type="fileresourcetype" minOccurs="0" maxOccurs="unbounded"/>
          </xs:sequence>          
        </xs:complexType>        
      </xs:element>
      
  	</xs:sequence>  	    	
  	<xs:attribute name="version" type="versiontype" use="required"/>	        
  </xs:complexType>
</xs:element>
  
</xs:schema>