6fede3f395
When a variant has optional, it is possible to explictly list it in the XML file and add extra groups. However, the original DTD did not allow multiple variants with `id="optional"` as `id` attribute has to be globally unique. This patch changes its type to `CDATA`, which has less restrictions. This also means we can no longer define `<ref>` as `IDREF` and instead check the existence of referenced variant in parser. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
47 lines
978 B
DTD
47 lines
978 B
DTD
<!ELEMENT variants (ref*,variant*)>
|
|
|
|
<!ELEMENT variant (release?,arches,groups?,environments*,variants*,buildinstallpackages?)?>
|
|
<!ATTLIST variant
|
|
id CDATA #REQUIRED
|
|
name CDATA #REQUIRED
|
|
type (variant|addon|optional|layered-product) #REQUIRED
|
|
has_optional (true|false) #IMPLIED
|
|
is_empty (true|false) "false"
|
|
>
|
|
|
|
<!ELEMENT release (#PCDATA)>
|
|
<!ATTLIST release
|
|
name CDATA #IMPLIED
|
|
short CDATA #IMPLIED
|
|
version CDATA #IMPLIED
|
|
>
|
|
|
|
<!ELEMENT arches (arch)+>
|
|
|
|
<!ELEMENT groups (group)+>
|
|
|
|
<!ELEMENT group (#PCDATA)>
|
|
<!ATTLIST group
|
|
glob (true|false) #IMPLIED
|
|
default (true|false) #IMPLIED
|
|
uservisible (true|false) #IMPLIED
|
|
>
|
|
|
|
<!ELEMENT environments (environment)+>
|
|
|
|
<!ELEMENT environment (#PCDATA)>
|
|
<!ATTLIST environment
|
|
display_order CDATA #IMPLIED
|
|
>
|
|
|
|
<!ELEMENT arch (#PCDATA)>
|
|
<!ELEMENT name (#PCDATA)>
|
|
|
|
<!ELEMENT ref EMPTY>
|
|
<!ATTLIST ref
|
|
id CDATA #REQUIRED
|
|
>
|
|
|
|
<!ELEMENT buildinstallpackages (package)+>
|
|
<!ELEMENT package (#PCDATA)>
|