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

Torben Hohn torben.hohn at linutronix.de
Tue Sep 17 17:58:28 CEST 2019


On Tue, Sep 17, 2019 at 03:29:33PM +0200, Akash Satamkar wrote:
> 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 in src-cdrom
> (maxOccurs can be 0 or any number or "unbounded").
> <all> cannot have maxOccurs="unbounded", but only
> 0 or 1, whereas <sequence> can hold any number of
> elements.
> 
> Signed-off-by: Akash Satamkar <akash at linutronix.de>

Reviewed-by: Torben Hohn <torben.hohn 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..d0076cda 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+|all"/>
> +                 </restriction>
> +             </simpleType>
> +           </attribute>
> +         </extension>
> +       </simpleContent>
> +     </complexType>
> +
>    <complexType name="iso-opts">
>      <annotation>
>        <documentation>
> -- 
> 2.20.1
> 
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel

-- 
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Hinweise zum Datenschutz finden Sie hier (Informations on data privacy 
can be found here): https://linutronix.de/kontakt/Datenschutz.php

Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen | 
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700 
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner



More information about the elbe-devel mailing list