S
shaun roe
This is probably an easy question for someone, but not me:
In a W3C schema I should like to specify that an element can contain
EITHER multiple instances of one entity OR just one instance of another.
e.g. element <bed> will be allowed to have up to seven instances of
element <dwarf> OR one instance of element <snow_white>, but the
occurrence of both <snow_white> and even one <dwarf> in the same <bed>
is not allowed.
does it help/hinder if the character of the element is specified as an
attribute instead of the element name? e.g. <character type="dwarf">,
<character type="snow_white>
In a W3C schema I should like to specify that an element can contain
EITHER multiple instances of one entity OR just one instance of another.
e.g. element <bed> will be allowed to have up to seven instances of
element <dwarf> OR one instance of element <snow_white>, but the
occurrence of both <snow_white> and even one <dwarf> in the same <bed>
is not allowed.
does it help/hinder if the character of the element is specified as an
attribute instead of the element name? e.g. <character type="dwarf">,
<character type="snow_white>