Giter VIP home page Giter VIP logo

Comments (7)

apenski avatar apenski commented on May 28, 2024 4

Yes, at least for your environment and test file, version 1.1.0 was working correctly. But you can easily have a scenario where schema validation works and schematron validation will fail with that same error in 1.1.0 too.

So these are bugs:

  1. a regression introduced in 1.1.1 that the schematron validation is started when schema validation fails

  2. a bug in 1.1.x that processing errors while validating with schematron (and also when validation with schema) are not properly progagated to the callee via Result-object.

This is fixed in master and branch-1.1.x. I'll do some testing in the next few days before pushing a new release. Thanks for reporting!

from validator.

apenski avatar apenski commented on May 28, 2024 1

the error report indicates, that the Version 1.1.0 is failing at schema validation step and stopping further processing while 1.1.2 is proceeding after this and then just fails on schematron step.

There was bug in 1.1.0 regarding malformed XML or garbage, that has been fixed in 1.1.1. Unfortunately this results in this error. I'll fix this

from validator.

rkottmann avatar rkottmann commented on May 28, 2024

Hi,

thx for reporting.

However, this is not issue of the validator itself. It is related to changed validation rules as configured in validator-configuration-xrechnung_1.2.2. Even more precisely Error evaluating (fn:exists(...) and fn:exists(...) and xs:date(EndDate) ge xs:date(StartDate) or fn:empty(...) or fn:empty(...)) in xsl:when/@test on line 2036 column 188 of EN16931-UBL-validation.xsl: tells me, it is a validation rule of https://github.com/ConnectingEurope/eInvoicing-EN16931 which we just integrate in our validator-configuration-xrechnung.

I will try to ask them that they write this rule more robust and with better error messages.

from validator.

GregorSz avatar GregorSz commented on May 28, 2024

Thank you for a quick response.
Using the configuration version 1.2.2_2019-12-30 and validationtool-1.1.0 I don't get the exception. It occurs just after updating the validation tool to version 1.1.2.

from validator.

rkottmann avatar rkottmann commented on May 28, 2024

Ah ok, then we might have two issues at the same time! We will investigate this too.

from validator.

rkottmann avatar rkottmann commented on May 28, 2024

@apenski does it seem like a bug in 1.1.0 ?

from validator.

GregorSz avatar GregorSz commented on May 28, 2024

I assume that behvaiour of the version 1.1.0 is actually correct, is it true? Two schema violations make sense for me :) Moreover thank you for taking care of the problem. I appreciate it.

from validator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.