Change XSD configuration
authorJihoon Chung <jihoon.chung@samsung.com>
Sun, 23 Jun 2013 11:08:16 +0000 (20:08 +0900)
committerTomasz Iwanek <t.iwanek@samsung.com>
Wed, 26 Jun 2013 07:22:09 +0000 (09:22 +0200)
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution]
Add Version validation to "[0-9]{1,2}.[0-9]{1,2}(.[0-9]{1,4})?"
[SCMRequest] N/A
[Verification] Run:
 xmlstarlet val -e -s configuration/widgets.xsd configuration/config.xml

Change-Id: I9ec53ad44c4fb6252d9326ee8c6a69778aff9870

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

index f33ce7e..2e9b7c3 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" version="0.0.1" viewmodes="fullscreen">
+<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>
   <icon src="icon.png" />
 
index de55b49..7d714e4 100644 (file)
@@ -17,7 +17,7 @@
           <xs:attributeGroup ref="widgets:extension"/>
           <xs:attribute name="id" type="xs:anyURI"/>
           <xs:attribute name="defaultlocale"/>
-          <xs:attribute name="version"/>
+          <xs:attribute name="version" type="widgets:data.versionNumber"/>
           <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"/>