[
Lists Home |
Date Index |
Thread Index
]
Hunsberger, Peter wrote:
> I'm new to XML schema and am confused on how I would create a schema that
> introduces a set of arbitrary grouping for a set of elements. For example:
>
> [...]
> would all be considered valid. Additional constraints are that any number
> of groups can occur, but the elements a through f can each only occur a
> maximum of once inside the x element whether they are children of a group or
> not.
for once, this might a case where something was easier to do with an
attribute
<x>
<a group="1" />
<b group="1"/>
<c/>
<d group="2" />
<e group="2" />
<f group="2" />
</x>
Bill de hÓra
|