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.
On Fri, Dec 30, 2016 at 1:35 PM, George Sofianos gsf.greece@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.