Change XSD configuration
authorJihoon Chung <jihoon.chung@samsung.com>
Sun, 23 Jun 2013 11:08:16 +0000 (20:08 +0900)
committerJihoon Chung <jihoon.chung@samsung.com>
Thu, 27 Jun 2013 15:52:02 +0000 (00:52 +0900)
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution]
Add "xml:lang" for Widget, Name, Author and Description
IDE needs exactly declare of each element to generate java data for UX
from XSD
[SCMRequest] N/A

Change-Id: Ib2918948a6efcd617b49c6f28133165e0e88e0c3

configuration/config.xml
configuration/packaging-configuration.xsd
configuration/widgets.tizen.xsd

index 2e9b7c3..d4a6df7 100644 (file)
@@ -1,6 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" version="00.00.0001" viewmodes="fullscreen windowed floating">
   <name>hello</name>
+  <name xml:lang="en">hello</name>
   <icon src="icon.png" />
 
   <!-- tizen application element -->
index 7d714e4..f1a1520 100644 (file)
@@ -4,6 +4,7 @@
   <xs:include schemaLocation="access.xsd"/>
   <xs:include schemaLocation="updates.xsd"/>
   <xs:import namespace="http://tizen.org/ns/widgets" schemaLocation="widgets.tizen.xsd"/>
+  <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
   <!--
     Widget Packaging and Configuration <http://www.w3.org/TR/widgets/>
     requires common.rnc
@@ -36,6 +37,8 @@
               </xs:list>
             </xs:simpleType>
           </xs:attribute>
+          <!-- Requirment from IDE UX -->
+          <xs:attribute ref="xml:lang"/>
         </xs:extension>
       </xs:complexContent>
     </xs:complexType>
@@ -77,6 +80,8 @@
         <xs:element ref="widgets:span"/>
         <xs:group ref="widgets:foreignElement"/>
       </xs:choice>
+      <!-- Requirment from IDE UX -->
+      <xs:attribute ref="xml:lang"/>
       <xs:attributeGroup ref="widgets:global.attrs"/>
       <xs:attributeGroup ref="widgets:global.xml"/>
       <xs:attributeGroup ref="widgets:extension"/>
@@ -89,6 +94,8 @@
         <xs:element ref="widgets:span"/>
         <xs:group ref="widgets:foreignElement"/>
       </xs:choice>
+      <!-- Requirment from IDE UX -->
+      <xs:attribute ref="xml:lang"/>
       <xs:attributeGroup ref="widgets:global.attrs"/>
       <xs:attributeGroup ref="widgets:global.xml"/>
       <xs:attributeGroup ref="widgets:extension"/>
         <xs:element ref="widgets:span"/>
         <xs:group ref="widgets:foreignElement"/>
       </xs:choice>
+      <!-- Requirment from IDE UX -->
+      <xs:attribute ref="xml:lang"/>
       <xs:attributeGroup ref="widgets:global.attrs"/>
       <xs:attributeGroup ref="widgets:global.xml"/>
       <xs:attributeGroup ref="widgets:extension"/>
index f930778..0d8233a 100644 (file)
         </xs:complexType>
     </xs:element>
 
-    <xs:element name="content-security-policy" type="xs:string"/>
-    <xs:element name="content-security-policy-report-only" type="xs:string"/>
-    <xs:element name="allow-navigation" type="xs:string"/>
+    <xs:element name="content-security-policy">
+        <xs:complexType  mixed="true">
+        </xs:complexType>
+    </xs:element>
+
+    <xs:element name="content-security-policy-report-only">
+        <xs:complexType  mixed="true">
+        </xs:complexType>
+    </xs:element>
+
+    <xs:element name="allow-navigation">
+        <xs:complexType  mixed="true">
+        </xs:complexType>
+    </xs:element>
 
     <xs:element name="app-widget">
         <xs:complexType mixed="true">