You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gentle people,
I've found an unexpected behaviour in both Jing and Emacs's RNG-validator; the operators |= and &= work just like = when used on the start symbol of an included grammar.
Given three files, foo.rnc, bar.rnc and foo.xml, the command jing -c foo.rnc foo.xml succeeds but jing -c bar.rnc foo.xml fails.
<!-- foo.xml -->
<foo/>
# foo.rnc
start = foo
foo = element foo {empty}
# bar.rnc
bar = element bar {empty}
start =
grammar {
include "foo.rnc"
{ start |= parent bar }
}
Replacing |= with &= produces the same error: it is as if there was as replacement start = parent bar.
Best regards and thanks,
Vili Aapro
The text was updated successfully, but these errors were encountered:
Gentle people,
I've found an unexpected behaviour in both Jing and Emacs's RNG-validator; the operators
|=
and&=
work just like=
when used on the start symbol of an included grammar.Given three files,
foo.rnc
,bar.rnc
andfoo.xml
, the commandjing -c foo.rnc foo.xml
succeeds butjing -c bar.rnc foo.xml
fails.Replacing
|=
with&=
produces the same error: it is as if there was as replacementstart = parent bar
.Best regards and thanks,
Vili Aapro
The text was updated successfully, but these errors were encountered: