[elbe-devel] [PATCH v2 1/3] schema: Introduce <archive> element in schema

Akash Satamkar akash at linutronix.de
Tue Sep 10 11:20:29 CEST 2019


Add an element archive in src-cdrom that will
handle one or more <archivedir> tag in xml files.

Change from <all> to <sequence> in src-cdrom: The
archive tag can occur multiple times (maxOccurs
can be 0 or any number or "unbounded").

Signed-off-by: Akash Satamkar <akash at linutronix.de>
---
 schema/dbsfed.xsd | 45 +++++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 43 insertions(+), 2 deletions(-)

diff --git a/schema/dbsfed.xsd b/schema/dbsfed.xsd
index 8c475c69..9b5092c4 100644
--- a/schema/dbsfed.xsd
+++ b/schema/dbsfed.xsd
@@ -2525,7 +2525,7 @@
          Configuration of the src-cdrom
       </documentation>
     </annotation>
-    <all>
+    <sequence>
       <element name="size" type="rfs:memory" minOccurs="0" maxOccurs="1">
         <annotation>
           <documentation>
@@ -2542,10 +2542,51 @@
           </documentation>
         </annotation>
       </element>
-    </all>
+      <element name="archive" type="rfs:src-cdrom-archive" minOccurs="0" maxOccurs="unbounded">
+        <annotation>
+          <documentation>
+                tar.bz2 file that contains base64 encoded files for the source
+                cdrom.
+          </documentation>
+        </annotation>
+      </element>
+    </sequence>
     <attribute ref="xml:base"/>
   </complexType>
 
+     <complexType name="src-cdrom-archive">
+       <annotation>
+         <documentation>
+           Holds a base64 encoded tar.bz2 file that is added to the src-cdrom.
+         </documentation>
+       </annotation>
+       <simpleContent>
+         <extension base="base64Binary">
+           <attribute name="volume">
+             <annotation>
+               <documentation>
+                 Use this to control where the archive is stored when using
+                 split src-cdroms.
+                 It consists of a comma-separated list of volume numbers.
+                 A volume number can be 0 to n-1 for n equals the number
+                 of volumes if the src-cdrom is split.
+                 A volume number can also be negative to identify a volume
+                 beginning from the last index.
+                 (-1: last, -2: second last, ...)
+                 If you do not specify this attribute, the archive is added
+                 to each volume.
+               </documentation>
+             </annotation>
+             <simpleType>
+                 <restriction base="string">
+                   <pattern value="(-?\d+,)*-?\d+"/>
+                 </restriction>
+             </simpleType>
+           </attribute>
+         </extension>
+       </simpleContent>
+     </complexType>
+
   <complexType name="iso-opts">
     <annotation>
       <documentation>
-- 
2.20.1




More information about the elbe-devel mailing list