wzab/agwb

Certain problems with RelaxNG syntax validation

wzab opened this issue · 1 comments

wzab commented

When working on support for "external blocks with fixed internal structure" ( #61 ), I have found certain problems with RelaxNG validation:

Trying to spot the issue, I have found that even in the master branch, when I modify the line:

<block name="SYS1">
replacing
<block name="SYS1"> with <block nafme="SYS1">, I get the following error message:

wzab@WZabHP:/tmp/agwb/tests/test$ ./generate.sh
<string>:6:0:ERROR:RELAXNGV:RELAXNG_ERR_NOELEM: Expecting an element sreg, got nothing
<string>:0:0:ERROR:RELAXNGV:RELAXNG_ERR_INTEREXTRA: Extra element block in interleave
<string>:6:0:ERROR:RELAXNGV:RELAXNG_ERR_CONTENTVALID: Element sysdef failed to validate content
<block nafme="SYS1">
|
The erroneous line was produced from the following sources:
file: block1.xml, line:1

which is not related to the real cause of the problem.
The problem is the incorrect attribute of the "block" element. There is no "sreg" expected!

wzab commented

The problem has been reported in Debian https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=986342
Switching to DTD validation works the problem around.