XSD 1.1 Validation
Saturday, 7 February 2015 · 2 messages
AL
Alex R. Loayza7 Feb 2015 04:22 #
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
CG
Christian Grün7 Feb 2015 11:45 #
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
[1] https://duckduckgo.com/?q=Java+XSD+1.1&ia=qa
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.
⚡Generated with XQuery