Schema Validation issues
Friday, 30 December 2016 · 2 messages · last reply 2 Jan 2017
GS
George Sofianos30 Dec 2016 13:35 #
Because of issues with schema validation (can't properly use doc() in the validate function - see
https://github.com/BaseXdb/basex/issues/1324), I'm not using BaseX to do schema validation in my workflow.
But I needed it today to make some result comparisons with my own implementation of XML Validator, and I noticed that using the beta Xerces version which is documented in the wiki
<http://docs.basex.org/wiki/Validation_Module#XML_Schema_Validation> can make it crash, so I thought I should report it here.
Other than that, I noticed one some XML files that it only reports fatal errors, and hides any other non-fatal error. I think it has something to do with the process
<https://github.com/BaseXdb/basex/blob/86a12cf0c75010b3058c18f81c4689bc511b7c2d/basex-core/src/main/java/org/basex/query/func/validate/ValidateFn.java> method but I'm not sure.
CG
Christian Grün2 Jan 2017 11:58 #
Hi George,
This looks like a bug in the Apache Xerces implementation that has been included in Java. Unfortunately, there hasn’t been an update for a long time now. Maybe things will work out if you integrate a more recent version of Xerces in the classpath.
Hope this helps,
Christian
PS: If there’s some chance to make your issues with validate and
fn:doc reproducible, I’ll be happy to have a closer look at it.Quoted text · George Sofianos · 13 lines
On Fri, Dec 30, 2016 at 1:35 PM, George Sofianos <gsf.greece at gmail.com> wrote: > Because of issues with schema validation (can't properly use doc() in the > validate function - see https://github.com/BaseXdb/basex/issues/1324), I'm > not using BaseX to do schema validation in my workflow. > > But I needed it today to make some result comparisons with my own > implementation of XML Validator, and I noticed that using the beta Xerces > version which is documented in the wiki can make it crash, so I thought I > should report it here. > > Other than that, I noticed one some XML files that it only reports fatal > errors, and hides any other non-fatal error. I think it has something to do > with the process method but I'm not sure.
Written for BaseX 8.5. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery