servicewidget/themes/install-themes/hsps_manifest.xsd
branchRCL_3
changeset 23 9a48e301e94b
parent 0 5e5d6b214f4f
equal deleted inserted replaced
22:3104fc151679 23:9a48e301e94b
       
     1 <?xml version="1.0" encoding="ISO-8859-1"?>
       
     2 
       
     3 <!-- Validation of the HSPS manifest files -->
       
     4 
       
     5 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">  
       
     6 
       
     7 <!-- Version type -->
       
     8 <xs:simpleType name="versiontype">           
       
     9   <xs:restriction base="xs:decimal">          
       
    10     <xs:pattern value="[0-9].[0-9]"/>
       
    11   </xs:restriction>    
       
    12 </xs:simpleType>
       
    13 
       
    14 <!-- Localized type -->
       
    15 <xs:simpleType name="localizedtype">
       
    16   <xs:restriction base="xs:string">
       
    17     <xs:pattern value="[&#38;][q][t][n][_]([a-z_A-Z0-9])*[;]"/>
       
    18   </xs:restriction>
       
    19 </xs:simpleType>
       
    20 
       
    21 <!-- Filename type -->
       
    22 <xs:simpleType name="filenametype">
       
    23   <xs:restriction base="xs:string">
       
    24     <xs:pattern value="([a-z_A-Z0-9])*"/>
       
    25   </xs:restriction>
       
    26 </xs:simpleType>
       
    27 
       
    28 <!-- Fileresource type -->
       
    29 <xs:complexType name="fileresourcetype">       
       
    30   <xs:simpleContent>
       
    31     <xs:extension base="xs:string">      
       
    32       <xs:attribute name="mediatype">
       
    33         <xs:simpleType>
       
    34           <xs:restriction base="xs:string">
       
    35             <xs:maxLength value="100"/>
       
    36           </xs:restriction>
       
    37         </xs:simpleType>
       
    38       </xs:attribute>                            
       
    39     </xs:extension>
       
    40   </xs:simpleContent>                    
       
    41 </xs:complexType>
       
    42 
       
    43 
       
    44 <!-- Structure of a manifest file -->
       
    45 <xs:element name="package">    
       
    46   <xs:complexType>
       
    47     <xs:sequence>
       
    48           
       
    49   	  <xs:element name="type"> 
       
    50     	  <xs:simpleType>
       
    51           <xs:restriction base="xs:string">
       
    52             <xs:pattern value="application|view|widget|template"/>
       
    53           </xs:restriction>
       
    54         </xs:simpleType>
       
    55       </xs:element> 
       
    56       
       
    57   	  <xs:element name="interfaceuid" type="xs:hexBinary"/>
       
    58   	      	          
       
    59       <xs:element name="provideruid" type="xs:hexBinary"/>              
       
    60       
       
    61       <xs:element name="configurationuid" type="xs:hexBinary"/>      
       
    62       
       
    63       <xs:element name="status" minOccurs="0" maxOccurs="unbounded"> 
       
    64         <xs:simpleType>
       
    65           <xs:restriction base="xs:string">
       
    66             <xs:pattern value="statusmakeactive|statuslicenceedefault|statuslicenceerestorable|statusoperatordefault|statususerdefault"/>
       
    67           </xs:restriction>
       
    68         </xs:simpleType>
       
    69       </xs:element>
       
    70       
       
    71       <xs:element name="fullname" type="localizedtype"/> 
       
    72       
       
    73       <xs:element name="shortname" type="filenametype"/>
       
    74       
       
    75       <xs:element name="version" type="versiontype"/> 
       
    76             
       
    77       <xs:element name="filexml" type="xs:string"/> 
       
    78       
       
    79       <xs:element name="filedtd" type="xs:string"/>
       
    80       
       
    81       <xs:element name="fileresource" type="fileresourcetype" minOccurs="0" maxOccurs="unbounded"/>
       
    82       
       
    83       <xs:element name="localization" minOccurs="0">
       
    84         <xs:complexType>     
       
    85           <xs:sequence>                      
       
    86             <xs:element name="fileresource" type="fileresourcetype" minOccurs="0" maxOccurs="unbounded"/>
       
    87           </xs:sequence>          
       
    88         </xs:complexType>        
       
    89       </xs:element>
       
    90       
       
    91   	</xs:sequence>  	    	
       
    92   	<xs:attribute name="version" type="versiontype" use="required"/>	        
       
    93   </xs:complexType>
       
    94 </xs:element>
       
    95   
       
    96 </xs:schema>