From 28933c5574575347f53227606c54c5a58728404b Mon Sep 17 00:00:00 2001 From: Martin Kletzander Date: Tue, 19 Mar 2013 12:26:02 +0100 Subject: [PATCH] Correct invalid RNG schemas 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. --- docs/schemas/domaincommon.rng | 2 +- docs/schemas/nwfilter.rng | 19 ++++++++----------- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index c4e7b7abb0..3240e1cd8c 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -3929,7 +3929,7 @@ - [a-zA-Z0-9_-]+ + [a-zA-Z0-9_\-]+ diff --git a/docs/schemas/nwfilter.rng b/docs/schemas/nwfilter.rng index cfd9ba57c7..f1aa699c7e 100644 --- a/docs/schemas/nwfilter.rng +++ b/docs/schemas/nwfilter.rng @@ -308,25 +308,25 @@ root - mac[a-zA-Z0-9_\.:-]{0,9} + mac[a-zA-Z0-9_\.:\-]{0,9} - stp[a-zA-Z0-9_\.:-]{0,9} + stp[a-zA-Z0-9_\.:\-]{0,9} - vlan[a-zA-Z0-9_\.:-]{0,8} + vlan[a-zA-Z0-9_\.:\-]{0,8} - arp[a-zA-Z0-9_\.:-]{0,9} + arp[a-zA-Z0-9_\.:\-]{0,9} - rarp[a-zA-Z0-9_\.:-]{0,8} + rarp[a-zA-Z0-9_\.:\-]{0,8} - ipv4[a-zA-Z0-9_\.:-]{0,8} + ipv4[a-zA-Z0-9_\.:\-]{0,8} - ipv6[a-zA-Z0-9_\.:-]{0,8} + ipv6[a-zA-Z0-9_\.:\-]{0,8} @@ -950,10 +950,7 @@ 0x[0-9a-fA-F]{1,8} - - 0 - 4294967295 - + -- 2.47.2