Re: [libvirt] [PATCH v3 01/13] XML schema for CPU flags

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> >    <define name='uint'>
> > -    <data type='string'>
> > +    <data type='unsignedInt'>
> >        <param name="pattern">[0-9]+</param>
> >      </data>
> >    </define>
> 
>   Hum, why do you change this ?

Because you wanted me to do so last time you reviewed this patch :-)

> But basically if you use http://www.w3.org/TR/xmlschema-2/#unsignedInt
> as the base type then the pattern restriction is superfluous.

It's derived (transitively) from nonNegativeInteger by setting maxInclusive.
Since, nonNegativeInteger allows '+' sign at the beginning and I wanted to
disallow that. Perhaps I'm reading that specification in a wrong way...

> [...]
> > +  <define name='positiveInteger'>
> > +    <data type='positiveInteger'>
> > +      <param name="pattern">[0-9]+</param>
> > +    </data>
> > +  </define>
> 
>   Same here, but it's nitpick, it should work as is, ACK,

Thanks.

Jirka

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]