<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://www.w3.org/ns/widgets" xmlns:widgets="http://www.w3.org/ns/widgets">
- <xs:import schemaLocation="common.xsd"/>
+ <xs:include schemaLocation="common.xsd"/>
+ <xs:include schemaLocation="access.xsd"/>
+ <xs:include schemaLocation="updates.xsd"/>
<xs:import namespace="http://tizen.org/ns/widgets" schemaLocation="widgets.tizen.xsd"/>
<!--
Widget Packaging and Configuration <http://www.w3.org/TR/widgets/>
<xs:complexType>
<xs:complexContent>
<xs:extension base="widgets:group.widgetContent">
- <xs:attributeGroup ref="global.attrs"/>
- <xs:attributeGroup ref="global.xml"/>
- <xs:attributeGroup ref="extension"/>
+ <xs:attributeGroup ref="widgets:global.attrs"/>
+ <xs:attributeGroup ref="widgets:global.xml"/>
+ <xs:attributeGroup ref="widgets:extension"/>
<xs:attribute name="id" type="xs:anyURI"/>
<xs:attribute name="defaultlocale"/>
<xs:attribute name="version"/>
- <xs:attribute name="min-version" type="data.versionNumber"/>
- <xs:attribute name="height" type="data.positiveNumber"/>
- <xs:attribute name="width" type="data.positiveNumber"/>
+ <xs:attribute name="min-version" type="widgets:data.versionNumber"/>
+ <xs:attribute name="height" type="widgets:data.positiveNumber"/>
+ <xs:attribute name="width" type="widgets:data.positiveNumber"/>
<xs:attribute name="viewmodes">
<xs:simpleType>
<xs:list>
<xs:element ref="tizen:app-widget" minOccurs="0" maxOccurs="unbounded" xmlns:tizen="http://tizen.org/ns/widgets"/>
<xs:element ref="tizen:account" minOccurs="0" maxOccurs="unbounded" xmlns:tizen="http://tizen.org/ns/widgets"/>
<xs:element ref="tizen:metadata" minOccurs="0" maxOccurs="unbounded" xmlns:tizen="http://tizen.org/ns/widgets"/>
- <xs:group ref="foreignElement"/>
+ <xs:element ref="tizen:splash" minOccurs="0" maxOccurs="1" xmlns:tizen="http://tizen.org/ns/widgets"/>
<!-- W3C testcases fail - should accept any element -->
+ <!-- <xs:group minOccurs="0" maxOccurs="unbounded" ref="widgets:foreignElement"/> -->
</xs:choice>
<xs:element ref="widgets:access"/>
- <xs:element ref="widgets:update-description"/>
+ <!-- <xs:element ref="widgets:update-description"/> -->
</xs:choice>
</xs:complexType>
<xs:element name="name">
<xs:complexType mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="widgets:span"/>
- <xs:group ref="foreignElement"/>
+ <xs:group ref="widgets:foreignElement"/>
</xs:choice>
- <xs:attributeGroup ref="global.attrs"/>
- <xs:attributeGroup ref="global.xml"/>
- <xs:attributeGroup ref="extension"/>
+ <xs:attributeGroup ref="widgets:global.attrs"/>
+ <xs:attributeGroup ref="widgets:global.xml"/>
+ <xs:attributeGroup ref="widgets:extension"/>
<xs:attribute name="short"/>
</xs:complexType>
</xs:element>
<xs:complexType mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="widgets:span"/>
- <xs:group ref="foreignElement"/>
+ <xs:group ref="widgets:foreignElement"/>
</xs:choice>
- <xs:attributeGroup ref="global.attrs"/>
- <xs:attributeGroup ref="global.xml"/>
- <xs:attributeGroup ref="extension"/>
+ <xs:attributeGroup ref="widgets:global.attrs"/>
+ <xs:attributeGroup ref="widgets:global.xml"/>
+ <xs:attributeGroup ref="widgets:extension"/>
</xs:complexType>
</xs:element>
<xs:element name="icon">
<xs:complexType>
- <xs:attributeGroup ref="global.attrs"/>
- <xs:attributeGroup ref="foreignAttribute"/>
+ <xs:attributeGroup ref="widgets:global.attrs"/>
+ <xs:attributeGroup ref="widgets:foreignAttribute"/>
<!-- w3c testcase - must ignore
<xs:attribute name="src" use="required" type="xs:anyURI"/>
-->
<xs:attribute name="src" type="xs:anyURI"/>
- <xs:attribute name="height" type="data.positiveNumber"/>
- <xs:attribute name="width" type="data.positiveNumber"/>
+ <xs:attribute name="height" type="widgets:data.positiveNumber"/>
+ <xs:attribute name="width" type="widgets:data.positiveNumber"/>
</xs:complexType>
</xs:element>
<xs:element name="author">
<xs:complexType mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="widgets:span"/>
- <xs:group ref="foreignElement"/>
+ <xs:group ref="widgets:foreignElement"/>
<!-- W3C testcases fail - should accept any element -->
</xs:choice>
- <xs:attributeGroup ref="global.attrs"/>
- <xs:attributeGroup ref="global.xml"/>
- <xs:attributeGroup ref="extension"/>
+ <xs:attributeGroup ref="widgets:global.attrs"/>
+ <xs:attributeGroup ref="widgets:global.xml"/>
+ <xs:attributeGroup ref="widgets:extension"/>
<xs:attribute name="href" type="xs:anyURI"/>
<xs:attribute name="email" type="xs:string"/>
<!-- fails W3C testcases
<xs:complexType mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="widgets:span"/>
- <xs:group ref="foreignElement"/>
+ <xs:group ref="widgets:foreignElement"/>
</xs:choice>
- <xs:attributeGroup ref="global.attrs"/>
- <xs:attributeGroup ref="global.xml"/>
- <xs:attributeGroup ref="extension"/>
+ <xs:attributeGroup ref="widgets:global.attrs"/>
+ <xs:attributeGroup ref="widgets:global.xml"/>
+ <xs:attributeGroup ref="widgets:extension"/>
<xs:attribute name="href" type="xs:anyURI"/>
</xs:complexType>
</xs:element>
<xs:element name="content">
<xs:complexType>
- <xs:attributeGroup ref="global.attrs"/>
- <xs:attributeGroup ref="foreignAttribute"/>
+ <xs:attributeGroup ref="widgets:global.attrs"/>
+ <xs:attributeGroup ref="widgets:foreignAttribute"/>
<!-- w3c testcase - ignore not valid
<xs:attribute name="src" use="required" type="xs:anyURI"/>
-->
<xs:complexType mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="widgets:param"/>
- <xs:group ref="foreignElement"/>
+ <xs:group ref="widgets:foreignElement"/>
</xs:choice>
- <xs:attributeGroup ref="global.attrs"/>
- <xs:attributeGroup ref="global.xml"/>
- <xs:attributeGroup ref="extension"/>
+ <xs:attributeGroup ref="widgets:global.attrs"/>
+ <xs:attributeGroup ref="widgets:global.xml"/>
+ <xs:attributeGroup ref="widgets:extension"/>
<!-- w3c tescase - must ignore
<xs:attribute name="name" use="required" type="xs:anyURI"/>
-->
<xs:attribute name="name" type="xs:anyURI"/>
- <xs:attribute name="required" type="data.boolean"/>
+ <xs:attribute name="required" type="widgets:data.boolean"/>
</xs:complexType>
</xs:element>
<xs:element name="param">
<xs:complexType mixed="true">
- <xs:group minOccurs="0" maxOccurs="unbounded" ref="foreignElement"/>
- <xs:attributeGroup ref="global.attrs"/>
- <xs:attributeGroup ref="global.xml"/>
- <xs:attributeGroup ref="extension"/>
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="widgets:foreignElement"/>
+ <xs:attributeGroup ref="widgets:global.attrs"/>
+ <xs:attributeGroup ref="widgets:global.xml"/>
+ <xs:attributeGroup ref="widgets:extension"/>
<xs:attribute name="name"/>
<xs:attribute name="value"/>
<!-- w3c testcase - must ignore
<xs:complexType mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="widgets:span"/>
- <xs:group ref="foreignElement"/>
+ <xs:group ref="widgets:foreignElement"/>
</xs:choice>
- <xs:attributeGroup ref="global.attrs"/>
- <xs:attributeGroup ref="global.xml"/>
+ <xs:attributeGroup ref="widgets:global.attrs"/>
+ <xs:attributeGroup ref="widgets:global.xml"/>
</xs:complexType>
</xs:element>
<xs:element name="preference">
<xs:complexType mixed="true">
- <xs:group minOccurs="0" maxOccurs="unbounded" ref="foreignElement"/>
- <xs:attributeGroup ref="global.attrs"/>
- <xs:attributeGroup ref="global.xml"/>
- <xs:attributeGroup ref="extension"/>
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="widgets:foreignElement"/>
+ <xs:attributeGroup ref="widgets:global.attrs"/>
+ <xs:attributeGroup ref="widgets:global.xml"/>
+ <xs:attributeGroup ref="widgets:extension"/>
<!-- w3c testcase -required but missing
<xs:attribute name="name" use="required"/>
-->
<xs:attribute name="name"/>
<xs:attribute name="value"/>
- <xs:attribute name="readonly" type="data.boolean"/>
+ <xs:attribute name="readonly" type="widgets:data.boolean"/>
</xs:complexType>
</xs:element>
</xs:schema>