You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ad...@apache.org on 2012/07/16 09:16:35 UTC

svn commit: r1361922 - /ofbiz/trunk/framework/base/dtd/ofbiz-properties.xsd

Author: adrianc
Date: Mon Jul 16 07:16:35 2012
New Revision: 1361922

URL: http://svn.apache.org/viewvc?rev=1361922&view=rev
Log:
Small cleanup in properties schema.

Modified:
    ofbiz/trunk/framework/base/dtd/ofbiz-properties.xsd

Modified: ofbiz/trunk/framework/base/dtd/ofbiz-properties.xsd
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/dtd/ofbiz-properties.xsd?rev=1361922&r1=1361921&r2=1361922&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/dtd/ofbiz-properties.xsd (original)
+++ ofbiz/trunk/framework/base/dtd/ofbiz-properties.xsd Mon Jul 16 07:16:35 2012
@@ -18,31 +18,30 @@ specific language governing permissions 
 under the License.
 -->
 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
-    <xs:import namespace="http://www.w3.org/XML/1998/namespace"
-            schemaLocation="http://www.w3.org/2001/xml.xsd"/>
+    <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd" />
+
+    <xs:complexType name="valueType">
+        <xs:simpleContent>
+            <xs:extension base="xs:string">
+                <xs:attribute ref="xml:lang" />
+            </xs:extension>
+        </xs:simpleContent>
+    </xs:complexType>
+
     <xs:element name="resource">
         <xs:complexType>
             <xs:sequence>
-                <xs:element minOccurs="1" maxOccurs="unbounded" ref="property"/>
+                <xs:element minOccurs="0" maxOccurs="unbounded" ref="property" />
             </xs:sequence>
         </xs:complexType>
     </xs:element>
+
     <xs:element name="property">
         <xs:complexType>
             <xs:sequence>
-                <xs:element minOccurs="1" maxOccurs="unbounded" name="value" type="valueType"/>
+                <xs:element minOccurs="1" maxOccurs="unbounded" name="value" type="valueType" />
             </xs:sequence>
-            <xs:attributeGroup ref="attlist.property"/>
+            <xs:attribute type="xs:string" name="key" use="required" />
         </xs:complexType>
     </xs:element>
-    <xs:attributeGroup name="attlist.property">
-        <xs:attribute type="xs:string" name="key" use="required"/>
-    </xs:attributeGroup>
-    <xs:complexType name="valueType">
-        <xs:simpleContent>
-            <xs:extension base="xs:string">
-                <xs:attribute ref="xml:lang"/>
-            </xs:extension>
-        </xs:simpleContent>
-    </xs:complexType>
 </xs:schema>