configurationengine/doc/xsd/confml.xsd
changeset 0 2e8eeb919028
equal deleted inserted replaced
-1:000000000000 0:2e8eeb919028
       
     1 <?xml version="1.0" encoding="utf-8"?>
       
     2 	<!--
       
     3 		Scheme according to 0.83 2.6.2008 Draft s60configurationml.doc 11.08.
       
     4 		2008 initial version hajduivo 2008-08-14 hajduivo update: xlink
       
     5 		added,but generated xml files contains wrong prefix at xlink
       
     6 		attributes 2008-08-15 hajduivo update: XInclude added
       
     7 	-->
       
     8 	<!--
       
     9 		DOCTYPE schema [ <!ENTITY ncname "[^:\I][^:\C]*"> <!ENTITY qname
       
    10 		"(&ncname;:)?&ncname;"> <!ENTITY aname "@&qname;"> <!ENTITY pos_t
       
    11 		"\[\d+\]"> <!ENTITY attr_t "\[&aname;=('|&quot;)(.)*('|&quot;)\]">
       
    12 		<!ENTITY name_t "\[(&qname;|\.)=('|&quot;)(.)*('|&quot;)\]"> <!ENTITY
       
    13 		cond "(&attr_t;|&name_t;)?(&pos_t;)?| (&pos_t;)?(&attr_t;|&name_t;)?">
       
    14 		<!ENTITY step "(&qname;|\*)(&cond;)?"> <!ENTITY pi
       
    15 		"processing-instruction\ ((('|&quot;)&qname;('|&quot;))?\)"> <!ENTITY
       
    16 		id "id\((('|&quot;)&ncname;('|&quot;))?\)"> <!ENTITY comm
       
    17 		"comment\(\)"> <!ENTITY text "text\(\)"> <!ENTITY nspace
       
    18 		"namespace::&ncname;"> <!ENTITY last
       
    19 		"&step;|&aname;|&nspace;|(&comm;(&pos_t;)?)|&text;(&pos_t;)?|&pi;(&pos_t;)?">
       
    20 		] <xs:import id="xi" namespace="http://www.w3.org/2001/xinclude"
       
    21 		schemaLocation="XInclude.xsd"/>
       
    22 	-->
       
    23 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
       
    24 	xmlns:tns="http://www.s60.com/xml/confml/1" xmlns:xlink="http://www.w3.org/1999/xlink"
       
    25 	xmlns:xi="http://www.w3.org/2001/XInclude" targetNamespace="http://www.s60.com/xml/confml/1"
       
    26 	elementFormDefault="qualified" attributeFormDefault="unqualified">
       
    27 	<xs:import id="xlink" namespace="http://www.w3.org/1999/xlink"
       
    28 		schemaLocation="xlink.xsd" />
       
    29 	<xs:import id="xs" namespace="http://www.w3.org/2001/XMLSchema"
       
    30 		schemaLocation="XMLSchema.xsd" />
       
    31 	<xs:import namespace="http://www.w3.org/2001/XInclude"
       
    32 		schemaLocation="XInclude.xsd" />
       
    33 	<xs:import namespace="http://www.s60.com/xml/confml/2"
       
    34 		schemaLocation="confml2.xsd" />
       
    35 		
       
    36 	<!-- Fixed Elements -->
       
    37 	<xs:element name="configuration" type="tns:configurationType" />
       
    38 	<xs:element name="meta" type="tns:metaType" />
       
    39 	<xs:element name="desc" type="tns:descType" />
       
    40 	<xs:element name="icon" type="tns:iconType" />
       
    41 	<xs:element name="view" type="tns:viewType" />
       
    42 	<xs:element name="group" type="tns:groupType" />
       
    43 	<xs:element name="feature" type="tns:featureType" />
       
    44 	<xs:element name="setting" type="tns:settingType" />
       
    45 	<xs:element name="data" type="tns:dataType" />
       
    46 	<xs:element name="rfs" type="tns:rfsType" />
       
    47 	<xs:element name="link" type="tns:linkType" />
       
    48 	<xs:element name="option" type="tns:optionType" />
       
    49 	<xs:element name="property" type="tns:propertyType" />
       
    50 	<xs:complexType name="configurationType">
       
    51 		<xs:choice minOccurs="0" maxOccurs="unbounded">
       
    52 			<xs:element ref="tns:meta" />
       
    53 			<xs:element ref="tns:desc" />
       
    54 			<xs:element ref="tns:icon" />
       
    55 			<xs:element ref="tns:view" />
       
    56 			<xs:element ref="tns:feature" />
       
    57 			<xs:element ref="tns:link" />
       
    58 			<xs:element ref="tns:data" />
       
    59 			<xs:element ref="tns:rfs" />
       
    60 			<xs:element ref="tns:configuration" />
       
    61 			<xs:element ref="xi:include"/>
       
    62 		</xs:choice>
       
    63 		<xs:attribute name="version" type="xs:NMTOKEN" />
       
    64 		<xs:attribute name="name" type="xs:string" />
       
    65 		<xs:attributeGroup ref="tns:CommonAttrs"></xs:attributeGroup>
       
    66 	</xs:complexType>
       
    67 	<xs:complexType name="metaType">
       
    68 		<xs:all>
       
    69 			<xs:element name="id" type="tns:idType" minOccurs="0" />
       
    70 			<xs:element name="date" type="tns:dateType" maxOccurs="1"
       
    71 				minOccurs="0" />
       
    72 			<xs:element name="owner" type="tns:ownerType" maxOccurs="1"
       
    73 				minOccurs="0" />
       
    74 			<xs:element name="editor" type="tns:editorType" maxOccurs="1"
       
    75 				minOccurs="0" />
       
    76 			<xs:element name="product" type="tns:productType"
       
    77 				maxOccurs="1" minOccurs="0" />
       
    78 			<xs:element name="status" type="tns:statusType" maxOccurs="1"
       
    79 				minOccurs="0" />
       
    80 			<xs:element name="platform" type="tns:platformType"
       
    81 				maxOccurs="1" minOccurs="0" />
       
    82 			<xs:element name="version" minOccurs="0" type="tns:versionType" />
       
    83 			<xs:element name="release" minOccurs="0" type="tns:releaseType" />
       
    84 			<xs:element name="customer" minOccurs="0" type="tns:customerType" />
       
    85 			<xs:element name="desc" minOccurs="0" type="tns:descType" />
       
    86 			<xs:element name="icon" minOccurs="0" type="tns:iconType" />
       
    87 			<xs:element ref="tns:link" maxOccurs="1" minOccurs="0"></xs:element>
       
    88 		</xs:all>
       
    89 	</xs:complexType>
       
    90 	<xs:complexType name="descType" mixed="true">
       
    91 		<xs:attribute ref="xlink:href" />
       
    92 		<xs:attribute ref="xlink:title" />
       
    93 		<xs:attributeGroup ref="tns:CommonAttrs"></xs:attributeGroup>
       
    94 	</xs:complexType>
       
    95 	<xs:complexType name="iconType">
       
    96 		<xs:attribute ref="xlink:href" use="optional" />
       
    97 		<xs:attribute ref="xlink:title" />
       
    98 		<xs:attributeGroup ref="tns:CommonAttrs"></xs:attributeGroup>
       
    99 	</xs:complexType>
       
   100 	<xs:complexType name="linkType">
       
   101 		<xs:attribute ref="xlink:href" use="optional" />
       
   102 		<xs:attribute ref="xlink:title" />
       
   103 		<xs:attributeGroup ref="tns:CommonAttrs"></xs:attributeGroup>
       
   104 	</xs:complexType>
       
   105 	<xs:complexType name="propertyType">
       
   106 		<xs:choice minOccurs="0" maxOccurs="unbounded">
       
   107 			<xs:element ref="tns:desc" />
       
   108 			<xs:element ref="tns:icon" />
       
   109 			<xs:element ref="tns:link" />
       
   110 		</xs:choice>
       
   111 		<xs:attributeGroup ref="tns:CommonAttrs"></xs:attributeGroup>
       
   112 		<xs:attribute name="name" type="xs:NMTOKEN" use="optional"></xs:attribute>
       
   113 		<xs:attribute name="value" type="xs:string"></xs:attribute>
       
   114 		<xs:attribute name="unit" type="xs:token"></xs:attribute>
       
   115 	</xs:complexType>
       
   116 	<xs:complexType name="settingType">
       
   117 		<xs:choice minOccurs="0" maxOccurs="unbounded">
       
   118 			<xs:element ref="tns:desc" />
       
   119 			<xs:element ref="tns:icon" />
       
   120 			<xs:element ref="tns:link" />
       
   121 			<xs:element ref="tns:option" />
       
   122 			<xs:element ref="tns:property" />
       
   123 			<xs:element ref="tns:setting" />
       
   124 			<xs:element ref="xs:minInclusive"></xs:element>
       
   125 			<xs:element ref="xs:maxInclusive"></xs:element>
       
   126 			<xs:element ref="xs:minExclusive"></xs:element>
       
   127 			<xs:element ref="xs:maxExclusive"></xs:element>
       
   128 			<xs:element ref="xs:pattern"></xs:element>
       
   129 			<xs:element ref="xs:length"></xs:element>
       
   130 			<xs:element ref="xs:minLength"></xs:element>
       
   131 			<xs:element ref="xs:maxLength"></xs:element>
       
   132 			<xs:element ref="xs:totalDigits"></xs:element>
       
   133 		</xs:choice>
       
   134 		<xs:attributeGroup ref="tns:CommonAttrs"></xs:attributeGroup>
       
   135 		<xs:attribute name="relevant" type="xs:token" default="true"></xs:attribute>
       
   136 		<xs:attribute name="constraint" type="xs:token" default="true">
       
   137 		</xs:attribute>
       
   138 		<xs:attribute name="readOnly" type="xs:NMTOKEN" default="true">
       
   139 		</xs:attribute>
       
   140 		<xs:attribute name="name" type="xs:string"></xs:attribute>
       
   141 		<xs:attribute name="type" type="tns:typeType" use="optional"></xs:attribute>
       
   142 		<xs:attribute name="ref" type="xs:string" use="optional"></xs:attribute>
       
   143 		<!--
       
   144 			TODO inconsistent defaults: for generic settings this does not have a
       
   145 			sense
       
   146 		-->
       
   147 		<xs:attribute name="minOccurs" type="xs:nonNegativeInteger"
       
   148 			default="0"></xs:attribute>
       
   149 		<xs:attribute name="maxOccurs" type="xs:allNNI" default="unbounded"></xs:attribute>
       
   150 		<xs:attribute name="mapKey" type="xs:string"></xs:attribute>
       
   151 		<xs:attribute name="mapValue" type="xs:string"></xs:attribute>
       
   152 		<xs:attribute name="required" type="xs:boolean" default="false"></xs:attribute>
       
   153 	</xs:complexType>
       
   154 	<xs:complexType name="featureType">
       
   155 		<xs:choice minOccurs="0" maxOccurs="unbounded">
       
   156 			<xs:element ref="tns:desc" />
       
   157 			<xs:element ref="tns:icon" />
       
   158 			<xs:element ref="tns:link" />
       
   159 			<xs:element ref="tns:setting"></xs:element>
       
   160 		</xs:choice>
       
   161 		<xs:attribute name="name" type="xs:string" />
       
   162 		<xs:attribute name="relevant" type="xs:string"></xs:attribute>
       
   163 		<xs:attribute name="ref" type="xs:NMTOKEN" use="required" />
       
   164 		<xs:attributeGroup ref="tns:CommonAttrs"></xs:attributeGroup>
       
   165 	</xs:complexType>
       
   166 	<xs:complexType name="optionType">
       
   167 		<xs:choice minOccurs="0" maxOccurs="unbounded">
       
   168 			<xs:element ref="tns:desc" />
       
   169 			<xs:element ref="tns:icon" />
       
   170 			<xs:element ref="tns:link" />
       
   171 		</xs:choice>
       
   172 		<xs:attributeGroup ref="tns:CommonAttrs"></xs:attributeGroup>
       
   173 		<xs:attribute name="name" type="xs:token" use="optional"></xs:attribute>
       
   174 		<xs:attribute name="value" type="xs:string" use="optional"></xs:attribute>
       
   175 		<xs:attribute name="relevant" type="xs:token" default="true"></xs:attribute>
       
   176 		<xs:attribute name="map" type="xs:string"></xs:attribute>
       
   177 	</xs:complexType>
       
   178 	<xs:complexType name="groupType">
       
   179 		<xs:choice minOccurs="0" maxOccurs="unbounded">
       
   180 			<xs:element ref="tns:desc" />
       
   181 			<xs:element ref="tns:icon" />
       
   182 			<xs:element ref="tns:link" />
       
   183 			<xs:element ref="tns:group" />
       
   184 			<xs:element ref="tns:setting" />
       
   185 		</xs:choice>
       
   186 		<xs:attributeGroup ref="tns:CommonAttrs"></xs:attributeGroup>
       
   187 		<xs:attribute name="name" type="xs:string" use="required"></xs:attribute>
       
   188 	</xs:complexType>
       
   189 	<xs:complexType name="viewType">
       
   190 		<xs:choice minOccurs="0" maxOccurs="unbounded">
       
   191 			<xs:element ref="tns:meta" />
       
   192 			<xs:element ref="tns:desc" />
       
   193 			<xs:element ref="tns:icon" />
       
   194 			<xs:element ref="tns:link" />
       
   195 			<xs:element ref="tns:group"></xs:element>
       
   196 		</xs:choice>
       
   197 		<xs:attributeGroup ref="tns:CommonAttrs"></xs:attributeGroup>
       
   198 		<xs:attribute name="name" type="xs:token" use="optional"></xs:attribute>
       
   199 	</xs:complexType>
       
   200 	<xs:simpleType name="idType">
       
   201 		<xs:restriction base="xs:NMTOKEN"></xs:restriction>
       
   202 	</xs:simpleType>
       
   203 	<xs:simpleType name="dateType">
       
   204 		<xs:restriction base="xs:date"></xs:restriction>
       
   205 	</xs:simpleType>
       
   206 	<xs:simpleType name="ownerType">
       
   207 		<xs:restriction base="xs:string"></xs:restriction>
       
   208 	</xs:simpleType>
       
   209 	<xs:simpleType name="editorType">
       
   210 		<xs:restriction base="xs:string"></xs:restriction>
       
   211 	</xs:simpleType>
       
   212 	<xs:simpleType name="productType">
       
   213 		<xs:restriction base="xs:string"></xs:restriction>
       
   214 	</xs:simpleType>
       
   215 	<xs:simpleType name="statusType">
       
   216 		<xs:restriction base="xs:string"></xs:restriction>
       
   217 	</xs:simpleType>
       
   218 	<xs:simpleType name="platformType">
       
   219 		<xs:restriction base="xs:string"></xs:restriction>
       
   220 	</xs:simpleType>
       
   221 	<xs:simpleType name="versionType">
       
   222 		<xs:restriction base="xs:string"></xs:restriction>
       
   223 	</xs:simpleType>
       
   224 	<xs:simpleType name="releaseType">
       
   225 		<xs:restriction base="xs:string"></xs:restriction>
       
   226 	</xs:simpleType>
       
   227 	<xs:simpleType name="customerType">
       
   228 		<xs:restriction base="xs:string"></xs:restriction>
       
   229 	</xs:simpleType>
       
   230 <!-- <xs:attribute name="id" type="xs:NMTOKEN" />-->
       
   231 	<!--
       
   232 		<xs:attribute name="href" type="xs:anyURI" /> <xs:attribute
       
   233 		name="title" type="xs:string" />
       
   234 	-->
       
   235 	<xs:attributeGroup name="CommonAttrs">
       
   236 		<xs:attribute name="id" type="xs:ID"></xs:attribute>
       
   237 	</xs:attributeGroup>
       
   238 	<xs:complexType name="dataType">
       
   239 		<xs:sequence>
       
   240 			<xs:any namespace="##any" processContents="skip" minOccurs="0"
       
   241 				maxOccurs="unbounded"></xs:any>
       
   242 		</xs:sequence>
       
   243 		<xs:attributeGroup ref="tns:CommonAttrs"></xs:attributeGroup>
       
   244 		<xs:attribute name="extensionPolicy" type="xs:NMTOKEN"
       
   245 			default="replace">
       
   246 		</xs:attribute>
       
   247 		<xs:attribute name="template" type="xs:NMTOKEN" default="false"></xs:attribute>
       
   248 	</xs:complexType>
       
   249 	<xs:complexType name="rfsType">
       
   250 		<xs:sequence>
       
   251 			<xs:any namespace="##any" processContents="skip" minOccurs="0"
       
   252 				maxOccurs="unbounded"></xs:any>
       
   253 		</xs:sequence>
       
   254 		<xs:attributeGroup ref="tns:CommonAttrs"></xs:attributeGroup>
       
   255 	</xs:complexType>
       
   256 	<xs:simpleType name="typeType">
       
   257 		<xs:restriction base="xs:string">
       
   258 			<xs:enumeration id="int" value="int"></xs:enumeration>
       
   259 			<xs:enumeration value="boolean"></xs:enumeration>
       
   260 			<xs:enumeration value="real"></xs:enumeration>
       
   261 			<xs:enumeration value="string"></xs:enumeration>
       
   262 			<xs:enumeration value="file"></xs:enumeration>
       
   263 			<xs:enumeration value="folder"></xs:enumeration>
       
   264 			<xs:enumeration value="sequence"></xs:enumeration>
       
   265 			<xs:enumeration value="selection"></xs:enumeration>
       
   266 			<xs:enumeration value="multiSelection"></xs:enumeration>
       
   267 			<xs:enumeration value="date"></xs:enumeration>
       
   268 			<xs:enumeration value="time"></xs:enumeration>
       
   269 			<xs:enumeration value="dateTime"></xs:enumeration>
       
   270 			<xs:enumeration value="duration"></xs:enumeration>
       
   271 		</xs:restriction>
       
   272 	</xs:simpleType>
       
   273 </xs:schema>