Update XSD to check application id boundary
authorJihoon Chung <jihoon.chung@samsung.com>
Wed, 8 May 2013 12:13:40 +0000 (21:13 +0900)
committerGerrit Code Review <gerrit2@kim11>
Fri, 10 May 2013 04:52:13 +0000 (13:52 +0900)
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] Update XSD to check application id boundary (1 to 52)
[SCMRequest] N/A

Change-Id: I97e59942f005b379c1cedf2f59eb2f0197fd6da5

configuration/config.tizen.xsd
configuration/config.xml [changed mode: 0755->0644]
configuration/config.xsd

index 72addb1..3d0c175 100644 (file)
@@ -21,7 +21,7 @@
 
     <xs:simpleType name="applicationIdType">
         <xs:restriction base="xs:string">
-            <xs:pattern value="[0-9a-zA-Z]{10}[.][0-9a-zA-Z]{1,}"/>
+            <xs:pattern value="[0-9a-zA-Z]{10}[.][0-9a-zA-Z]{1,52}"/>
         </xs:restriction>
     </xs:simpleType>
 
@@ -42,7 +42,7 @@
 
     <xs:simpleType name="appWidgetIdType">
         <xs:restriction base="xs:string">
-            <xs:pattern value="[0-9a-zA-Z]{10}.[0-9a-zA-Z]{1,}.[0-9a-zA-Z]{1,}"/>
+            <xs:pattern value="[0-9a-zA-Z]{10}.[0-9a-zA-Z]{1,52}.[0-9a-zA-Z]{1,}"/>
         </xs:restriction>
     </xs:simpleType>
 
         <xs:attribute ref="xml:lang"/>
       </xs:complexType>
     </xs:element>
+
+    <xs:element name="metadata">
+        <xs:complexType>
+            <xs:attribute name="key" type="xs:string" use="required"/>
+            <xs:attribute name="value" type="xs:string" use="required"/>
+        </xs:complexType>
+    </xs:element>
 </xs:schema>
old mode 100755 (executable)
new mode 100644 (file)
index 9968071..038ec52
@@ -4,7 +4,7 @@
   <icon src="icon.png" />
 
   <!-- tizen application element -->
-  <tizen:application id="GfeI4eyhBG.Test" package="GfeI4eyhBG" required_version="2.1"/>
+  <tizen:application id="GfeI4eyhBG.1" package="GfeI4eyhBG" required_version="2.1"/>
 
   <!-- tizen setting element -->
   <tizen:setting screen-orientation="landscape" context-menu="disable" background-support="enable" encryption="enable" install-location="internal-only"/>
@@ -23,4 +23,7 @@
 
   <!-- tizen allow-navigation element -->
   <tizen:allow-navigation>test.com</tizen:allow-navigation>
+
+  <!-- tizen metadata -->
+  <tizen:metadata key="key_1" value="value_1"/>
 </widget>
index 4d7a823..0c83a1e 100644 (file)
@@ -80,6 +80,7 @@
                 <xs:element ref="tizen:allow-navigation" minOccurs="0" maxOccurs="1" xmlns:tizen="http://tizen.org/ns/widgets"/>\r
                 <xs:element ref="tizen:app-widget"  minOccurs="0" maxOccurs="unbounded" xmlns:tizen="http://tizen.org/ns/widgets"/>\r
                 <xs:element ref="tizen:account"  minOccurs="0" maxOccurs="unbounded" xmlns:tizen="http://tizen.org/ns/widgets"/>\r
+                <xs:element ref="tizen:metadata"  minOccurs="0" maxOccurs="unbounded" xmlns:tizen="http://tizen.org/ns/widgets"/>\r
             </xs:choice>\r
             <xs:attribute ref="xml:lang"/>\r
             <xs:attribute name="id" type="xs:anyURI"/>\r