FELIX-1951: The SchemaObr.xsd in bundleplugin is incomplete

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@915042 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bundleplugin/src/main/resources/SchemaObr.xsd b/bundleplugin/src/main/resources/SchemaObr.xsd
index 63b63e9..31d5b88 100644
--- a/bundleplugin/src/main/resources/SchemaObr.xsd
+++ b/bundleplugin/src/main/resources/SchemaObr.xsd
@@ -61,16 +61,39 @@
     <xs:sequence>

   		<xs:element ref="p" minOccurs="0" maxOccurs="unbounded"/>

 	</xs:sequence>

+	<xs:attribute name="name" type="xs:string" use="required"/>

   </xs:complexType>

 </xs:element>

 

 <xs:element name="resource">

   <xs:complexType>

     <xs:sequence>

-		  <xs:element ref="capability" minOccurs="0" maxOccurs="unbounded"/> 

-		  <xs:element ref="require" minOccurs="0" maxOccurs="unbounded"/> 

-		  <xs:element ref="category" minOccurs="0" maxOccurs="unbounded"/> 

-	</xs:sequence>

+      <xs:element name="description" type="xs:string" minOccurs="0" maxOccurs="1"/>

+      <xs:element name="size" type="xs:long" minOccurs="0" maxOccurs="1"/>

+      <xs:element name="documentation" type="xs:string" minOccurs="0" maxOccurs="1"/>

+      <xs:element name="source" type="xs:string" minOccurs="0" maxOccurs="1"/>

+      <xs:element name="javadoc" type="xs:string" minOccurs="0" maxOccurs="1"/>

+      <xs:element name="license" type="xs:string" minOccurs="0" maxOccurs="1"/>

+      <xs:element ref="category" minOccurs="0" maxOccurs="unbounded"/>

+      <xs:element ref="capability" minOccurs="0" maxOccurs="unbounded"/> 

+      <xs:element ref="require" minOccurs="0" maxOccurs="unbounded"/>

+    </xs:sequence>

+    <xs:attribute ref="id" use="required"/>

+    <xs:attribute name="presentationname" type="xs:string" use="optional"/>

+    <xs:attribute name="symbolicname" type="xs:string" use="optional"/>

+    <xs:attribute name="uri" type="xs:string" use="optional"/>

+    <xs:attribute name="version" type="xs:string" use="optional"/>

   </xs:complexType>

 </xs:element>

+

+<xs:element name="repository">

+  <xs:complexType>

+    <xs:sequence>

+        <xs:element ref="resource" minOccurs="0" maxOccurs="unbounded"/> 

+    </xs:sequence>

+    <xs:attribute name="name" type="xs:string" use="required"/>

+    <xs:attribute name="lastmodified" type="xs:string" use="optional"/>

+  </xs:complexType>

+</xs:element>

+

 </xs:schema>