[elbe-devel] [PATCH 1/1] schema: Split out declaration of debootstrap variant enumeration

Holger Dengler dengler at linutronix.de
Wed Jan 12 11:23:09 CET 2022


On 12.01.22 11:02, Torben Hohn wrote:
> xsdtoasciidoc requires a type field in all elements of an <all> type.
> 
> Split out the inline declaration of the enumeration into a separate
> type definition like in the other enumerations.
> 
> Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>

Reviewed-by: Holger Dengler <dengler at linutronix.de>

> ---
>  schema/dbsfed.xsd | 35 +++++++++++++++++++++++++++--------
>  1 file changed, 27 insertions(+), 8 deletions(-)
> 
> diff --git a/schema/dbsfed.xsd b/schema/dbsfed.xsd
> index 26c43dbe8..34f4562c0 100644
> --- a/schema/dbsfed.xsd
> +++ b/schema/dbsfed.xsd
> @@ -1091,6 +1091,32 @@
>      <attribute ref="xml:base"/>
>    </complexType>
>  
> +  <complexType name="debootstrap_variant">
> +    <annotation>
> +      <documentation>
> +        Helper around debootstrap_variant_restriction to allow XML base attribute
> +      </documentation>
> +    </annotation>
> +    <simpleContent>
> +      <extension base="rfs:debootstrap_variant_restriction">
> +	<attribute ref="xml:base"/>
> +      </extension>
> +    </simpleContent>
> +  </complexType>
> +
> +  <simpleType name="debootstrap_variant_restriction">
> +    <annotation>
> +      <documentation>
> +	Restrict the possible debootstrap variants
> +      </documentation>
> +    </annotation>
> +    <restriction base="string">
> +      <enumeration value="minbase" />
> +      <enumeration value="buildd" />
> +      <enumeration value="fakechroot" />
> +    </restriction>
> +  </simpleType>
> +
>    <complexType name="debootstrap">
>      <annotation>
>        <documentation>
> @@ -1098,7 +1124,7 @@
>        </documentation>
>      </annotation>
>      <all>
> -      <element name="variant" minOccurs="0" maxOccurs="1">
> +      <element name="variant" type="rfs:debootstrap_variant" minOccurs="0" maxOccurs="1">
>          <annotation>
>            <documentation>
>              Name  of  the  bootstrap  script  variant to use.
> @@ -1108,13 +1134,6 @@
>              * fakechroot: installs the packages without root privileges.
>            </documentation>
>          </annotation>
> -        <simpleType>
> -          <restriction base="string">
> -            <enumeration value="minbase" />
> -            <enumeration value="buildd" />
> -            <enumeration value="fakechroot" />
> -          </restriction>
> -        </simpleType>
>        </element>
>        <element name="include" type="string" minOccurs="0" maxOccurs="1">
>          <annotation>

-- 
Gruß,
Holger Dengler
--
phone: +49 7556 25 999 14; fax: +49 7556 25 999 99
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.linutronix.de/pipermail/elbe-devel/attachments/20220112/807f5730/attachment.sig>


More information about the elbe-devel mailing list