From 2947a4d56b49f629ef1dd6b391bce63f285ea53a Mon Sep 17 00:00:00 2001 From: Tomasz Iwanek Date: Mon, 17 Jun 2013 09:44:52 +0200 Subject: [PATCH] Circular dependency removal in xml schema [Issue#] LINUXWRT-457 [Bug] Tizen IDE requires no circular dependecies in xml schema Missing namespace for elements. Using import instead of include. Ambiquitious model for foreign element in widget element (it just cannot be expressed...) [Cause] N/A [Solution] Move conflict part to new xsd file [Verification] run on PC: xmlstarlet val -e -s configuration/widgets.xsd configuration/config.xml. Check xml schema for IDE: - Run eclipse (Java EE edition!). - Create Project of type of "XSD Schema File". - Copy xsd files to project. - Right click on widgets.xsd file in Project Explorer view. - Choose "Validate" menuitem. - No errors should appear. Change-Id: I894a70c2548fc667c0a78ecde880e95b7b8fe4b7 --- configuration/access.xsd | 8 +-- configuration/common.xsd | 4 +- configuration/local.xsd | 8 +++ configuration/packaging-configuration.xsd | 99 ++++++++++++++++--------------- configuration/updates.xsd | 6 +- configuration/widgets.xsd | 7 --- 6 files changed, 68 insertions(+), 64 deletions(-) create mode 100644 configuration/local.xsd diff --git a/configuration/access.xsd b/configuration/access.xsd index 36d2937..f2404e4 100644 --- a/configuration/access.xsd +++ b/configuration/access.xsd @@ -1,14 +1,14 @@ - + - - + + - + diff --git a/configuration/common.xsd b/configuration/common.xsd index 2ce2f7c..24d7283 100644 --- a/configuration/common.xsd +++ b/configuration/common.xsd @@ -1,6 +1,6 @@ - + @@ -15,7 +15,7 @@ - + diff --git a/configuration/local.xsd b/configuration/local.xsd new file mode 100644 index 0000000..4aecb7d --- /dev/null +++ b/configuration/local.xsd @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/configuration/packaging-configuration.xsd b/configuration/packaging-configuration.xsd index bb130eb..de55b49 100644 --- a/configuration/packaging-configuration.xsd +++ b/configuration/packaging-configuration.xsd @@ -1,6 +1,8 @@ - + + + + - + - + - - - + + + @@ -84,35 +87,35 @@ - + - - - + + + - - + + - - + + - + - - - + + + @@ -154,24 +157,24 @@ - + - - - + + + - + - - - - + + + + - + diff --git a/configuration/updates.xsd b/configuration/updates.xsd index 6be386b..6e6d88a 100644 --- a/configuration/updates.xsd +++ b/configuration/updates.xsd @@ -1,14 +1,14 @@ - + - - + + diff --git a/configuration/widgets.xsd b/configuration/widgets.xsd index 839fa03..8de2f3d 100644 --- a/configuration/widgets.xsd +++ b/configuration/widgets.xsd @@ -16,12 +16,5 @@ --> - - - - - - - -- 2.7.4