pungi/share/variants.dtd
Lubomír Sedlář 6fede3f395 variants: Allow multiple explicit optional variants
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>
2016-09-19 12:21:19 +02:00

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)>