Re: [PATCH] Correct invalid RNG schemas.

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

 



On 03/21/2013 04:28 PM, Martin Kletzander wrote:
> The 'trang' utility, which is able to transform '.rng' files into
> '.rnc' files, reported some errors in our schemas that weren't caught
> by the tools we use in the build.  I haven't added a test for this,
> but the validity can be checked by the following command:
> 
> trang -I rng -O rnc domain.rng domain.rnc
> 
> There were unescaped minuses in regular expressions and we were
> constraining int (which is by default in the range of [-2^31;2^31-1]
> to maximum of 2^32.  But what we wanted was exactly an unsignedInt.
> 
> Signed-off-by: Martin Kletzander <mkletzan@xxxxxxxxxx>
> ---
> Thanks to that, the '.rnc' files can be used by nxml-mode which makes
> editing libvirt xml files a *lot* easier.
> 
>  docs/schemas/domaincommon.rng |  2 +-
>  docs/schemas/nwfilter.rng     | 19 ++++++++-----------
>  2 files changed, 9 insertions(+), 12 deletions(-)

ACK

Jan

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