• [gentoo-dev] [PATCH 2/2] repositories.xsd: Use xs:language for lang att

    From =?UTF-8?q?Ulrich=20M=C3=BCller?=@21:1/5 to All on Sun May 22 07:40:01 2022
    Use a build-in datatype of XML Schema instead of hand-crafting our own.

    Signed-off-by: Ulrich Müller <ulm@gentoo.org>
    ---
    repositories.xsd | 214 +----------------------------------------------
    1 file changed, 1 insertion(+), 213 deletions(-)

    diff --git a/repositories.xsd b/repositories.xsd
    index 8454c7a..be4ce20 100644
    --- a/repositories.xsd
    +++ b/repositories.xsd
    @@ -55,7 +55,7 @@
    <xs:complexType name='descriptionType'>
    <xs:simpleContent>
    <xs:extension base='xs:token'>
    - <xs:attribute name='lang' type='langAttrType' default='en'/>
    + <xs:attribute name='lang' type='xs:language' default='en'/>
    </xs:extension>
    </xs:simpleContent>
    </xs:complexType>
    @@ -81,218 +81,6 @@
    </xs:complexType>

    <!-- attributes -->
    - <xs:simpleType name='langAttrType'>
    - <xs:restriction base='xs:token'>
    - <!-- ISO 639-1 language codes -->
    - <xs:enumeration value='aa'/>
    - <xs:enumeration value='ab'/>
    - <xs:enumeration value='ae'/>
    - <xs:enumeration value='af'/>
    - <xs:enumeration value='ak'/>
    - <xs:enumeration value='am'/>
    - <xs:enumeration value='an'/>
    - <xs:enumeration valu