<xs:simpleType name="liveboxIdType">
<xs:restriction base="xs:string">
- <xs:pattern value="[0-9a-zA-Z]{1,}"/>
+ <xs:pattern value="[0-9a-zA-Z]{10}.[0-9a-zA-Z]{1,}"/>
</xs:restriction>
</xs:simpleType>
-<xs:simpleType name="pdWidth">
- <xs:restriction base="xs:int">
- <xs:minInclusive value="175"/>
- <xs:maxInclusive value="720"/>
- </xs:restriction>
-</xs:simpleType>
-
-<xs:simpleType name="pdHeight">
- <xs:restriction base="xs:int">
- <xs:minInclusive value="175"/>
- <xs:maxInclusive value="525"/>
+<xs:simpleType name="updatePeriodType">
+ <xs:restriction base="xs:float">
+ <xs:minInclusive value="60"/>
</xs:restriction>
</xs:simpleType>
</xs:complexType>
</xs:element>
+<!-- TODO : appservice will be removed. Please use app-control-->
<xs:element name="appservice">
<xs:complexType>
<xs:attribute name="src" type="xs:NCName" use="required"/>
<xs:attribute name="context-menu" type="tizen:activationType" use="optional"/> <!-- default: enable -->
<xs:attribute name="background-support" type="tizen:activationType" use="optional"/> <!-- default: enable -->
<xs:attribute name="encryption" type="tizen:activationType" use="optional"/> <!-- default: disable -->
- <xs:attribute name="nodisplay" type="widgets:data.boolean" use="optional"/> <!-- default: false -->
+ <xs:attribute name="install-location" type="tizen:InstallLocationType" use="optional"/>
</xs:complexType>
</xs:element>
+<xs:element name="app-control">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:choice maxOccurs="unbounded">
+ <xs:element ref="tizen:src"/>
+ <xs:element ref="tizen:operation"/>
+ <xs:element ref="tizen:uri"/>
+ <xs:element ref="tizen:mime"/>
+ </xs:choice>
+ </xs:sequence>
+ </xs:complexType>
+</xs:element>
+
<xs:element name="category">
<xs:complexType>
<xs:anyAttribute processContents="lax"/>
</xs:complexType>
</xs:element>
+<xs:element name="src">
+ <xs:complexType>
+ <xs:attribute name="name" use="required"/>
+ </xs:complexType>
+</xs:element>
+
+<xs:element name="operation">
+ <xs:complexType>
+ <xs:attribute name="name" use="required"/>
+ </xs:complexType>
+</xs:element>
+
+<xs:element name="uri">
+ <xs:complexType>
+ <xs:attribute name="name" use="required"/>
+ </xs:complexType>
+</xs:element>
+
+<xs:element name="mime">
+ <xs:complexType>
+ <xs:attribute name="name" use="required"/>
+ </xs:complexType>
+</xs:element>
+
<xs:element name="livebox">
<xs:complexType mixed="true">
<xs:all>
- <xs:element ref="tizen:label"/>
- <xs:element ref="tizen:icon"/>
- <xs:element ref="tizen:box"/>
+ <xs:element ref="tizen:box-label"/>
+ <xs:element ref="tizen:box-icon"/>
+ <xs:element ref="tizen:box-content"/>
</xs:all>
- <xs:attribute name="appid" type="tizen:liveboxIdType" use="required"/>
- <xs:attribute name="auto_launch" type="widgets:data.boolean" use="optional"/>
- <xs:attribute name="period" type="xs:float" use="optional"/>
- <xs:attribute name="network" type="widgets:data.boolean" use="optional"/>
- <xs:attribute name="nodisplay" type="widgets:data.boolean" use="optional"/>
- <xs:attribute name="primary" type="widgets:data.boolean" use="required"/>
- <xs:attribute name="timeout" type="xs:int" use="optional"/>
+ <xs:attribute name="id" type="tizen:liveboxIdType" use="required"/>
+ <xs:attribute name="primary" type="widgets:data.boolean" use="required"/>
+ <xs:attribute name="auto-launch" type="widgets:data.boolean" use="optional"/>
+ <xs:attribute name="update-period" type="tizen:updatePeriodType" use="optional"/>
</xs:complexType>
</xs:element>
-<xs:element name="label" type="xs:string"/>
+<xs:element name="privilege">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="widgets:param"/>
+ </xs:choice>
+ <xs:attribute name="name" use="required" type="xs:anyURI"/>
+ <xs:attributeGroup ref="widgets:extension"/>
+ </xs:complexType>
+</xs:element>
-<xs:element name="icon">
+<xs:element name="box-label">
+ <xs:complexType mixed="true">
+ </xs:complexType>
+</xs:element>
+
+<xs:element name="box-icon">
<xs:complexType>
<xs:attribute name="src" use="required" type="xs:anyURI"/>
</xs:complexType>
</xs:element>
-<xs:element name="box">
+<xs:element name="box-content">
<xs:complexType mixed="true">
<xs:sequence>
- <xs:element ref="tizen:boxsize" maxOccurs="4"/>
+ <xs:element ref="tizen:box-size" minOccurs="1" maxOccurs="5"/>
<xs:element ref="tizen:pd"/>
</xs:sequence>
<xs:attribute name="src" use="required" type="xs:anyURI"/>
<xs:element name="pd">
<xs:complexType>
<xs:attribute name="src" use="required" type="xs:anyURI"/>
- <xs:attribute name="width" use="required" type="tizen:pdWidth"/>
- <xs:attribute name="height" use="required" type="tizen:pdHeight"/>
+ <xs:attribute name="width" use="required" type="xs:int"/>
+ <xs:attribute name="height" use="required" type="xs:int"/>
</xs:complexType>
</xs:element>
-<xs:element name="boxsize">
- <xs:complexType>
+<xs:element name="box-size">
+ <xs:complexType mixed="true">
<xs:attribute name="preview" use="optional" type="xs:anyURI"/>
</xs:complexType>
</xs:element>
+<xs:simpleType name="InstallLocationType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="auto"/>
+ <xs:enumeration value="internal-only"/>
+ <xs:enumeration value="prefer-external"/>
+ </xs:restriction>
+</xs:simpleType>
+
</xs:schema>