XSD 1.1 Validation
Hello,
I tried to use xsd-info() to validate using a schema 1.1. However, I got the following error:
Fatal:s4s-elt-invalid-content.1: The content of '#AnonType_reporte' is invalid. Element 'assert' is invalid, misplaced, or occurs too often.
According to the validation module documentation, said module uses "Java’s standard validators". Does this refer to Xerces? If not, is there a way to call Xerces to perform validation from BaseX? Or maybe any other way to validate with 1.1?
Thank you.
Alex
Hi Alex,
A little search tells me that XSD 1.1 may need to be explicitly activated [1]. Could you please provide us with a little SSCCE that we can use for testing?
Thanks, Christian
Quoted text · Alex R. Loayza · 18 lines
On Sat, Feb 7, 2015 at 4:22 AM, Alex R. Loayza <logal3 at yahoo.com> wrote: > Hello, > > I tried to use xsd-info() to validate using a schema 1.1. However, I got the > following error: > > Fatal:s4s-elt-invalid-content.1: The content of '#AnonType_reporte' is > invalid. Element 'assert' is invalid, misplaced, or occurs too often. > > According to the validation module documentation, said module uses "Java’s > standard validators". Does this refer to Xerces? If not, is there a way to > call Xerces to perform validation from BaseX? Or maybe any other way to > validate with 1.1? > > Thank you. > > Alex >
Written for BaseX 7.9. BaseX may have changed since: please check the current documentation.