As you can see I introduced some errors (five in
total, named error0 – error4) on various depths within the XML tree. I will
refrain from posting the whole XSD, but it’s a pretty simple one with the
shiporder allowing 1 orderperson, 1 shipto and multiple item elements, and each
of those having the internal elements as displayed above, aside from the errors
of course. Without the errors this validates fine.
When I run this through the validator (command
line) I get only the first error reported:
>Validation error at /shiporder/error0 on line 4 column 11 of
> In content of element <shiporder>: The content model does
not allow element <error0> to
> appear here.
The other errors are all unreported, while I
would say that they are all unrelated to eachother (aside from being in the same
depth of the XML tree in some cases). Error4 is even of a completely different
type (disallowed content, instead of element not allowed), and is apparently
filtered out as well.
Expanding on this test case a bit:
- When I remove error0: error1 and error3 are
- When I remove error0 and error1: error2 and
error3 are reported
- When I remove error0, error1 and error3: error2
and error4 are reported.
Is there any way that I could get all 5 errors
reported at once?
Sent: Wednesday, March 21, 2012 10:17 AM
Subject: Re: [saxon] Can I produce a full list of validation
problems with Saxon Validate?