On Thu, Feb 06, 2020 at 16:49:05 +0100, Ján Tomko wrote: > On Thu, Feb 06, 2020 at 08:52:04AM +0100, Peter Krempa wrote: [...] > > + <group> > > + <element name='slice'> > > + <attribute name='type'> > > + <value>storage</value> > > + </attribute> > > + <ref name="diskSourceSlice"/> > > + </element> > > + </group> > > + <group> > > + <element name='slice'> > > + <attribute name='type'> > > + <value>format</value> > > + </attribute> > > + <ref name="diskSourceSlice"/> > > Not sure why you use groups if the only choice is between > the values of the type attribute. What I really wanted to express is that I wanted to allow only 0 or 1 slice with type storage and 0 or 1 slice of type format in any order, but my RNG-fu was not strong enough. I forgot to optimize it after the attempts. :( Any ideas how to achieve the above? Otherwise I'll optimize it.