Only major changes are reported here.
0.14.1: in prior versions,
<rng:group>
would sometimes report an error later than the earliest event it could report it on. To illustrate, imagine the following content model for theem
element:(b | em), i
, and validating<em><i/></em>
. The validation would report an error only when</em>
was processed. The bug fix makes it so that the error is reported as soon as<i>
is processed.- 0.14.0 changes how
rng-to-js.xsl
generates its output. See the
section on
rng-to-js.xsl
in the README file. Although salve still supports the old output, I strongly recommend runningsalve-simplify
andxsltproc
withrng-to-js.xsl
to regenerate the JSON that encodes your schema. You can easily get a file that is one order of magnitude smaller than those produced by earlier versions of salve.- 0.14.0 changes how
0.13.0 adds name-resolving facilities to salve. See the documentation about events in the README file.
0.12.0 introduces a major API change. Whereas
Walker.fireEvent()
andWalker.end()
used to returntrue
when there was no validation error, they now returnfalse
instead. This makes differentiating between error conditions and an absence of errors easier. (If the return value is interpreted as the booleantrue
then there is an error, otherwise there is no error. Previously, one would have to test the return value for identity with the valuetrue
, which is more verbose.)