itplr-kosit / validator

Validates XML documents with XML Schema and Schematron
Apache License 2.0
78 stars 41 forks source link

Suffix of report xml is missing #51

Closed chmoelders closed 4 years ago

chmoelders commented 4 years ago

I do not know if this is the correct repository. Maybe it is related to itplr-kosit/validator.

Reproduction: java -jar validationtool-1.3.1-standalone.jar -s validator-configuration/scenarios.xml -h validator-configuration/test/testsuite/01.13a-INVOICE_ubl.xml

Generates files: 01-report.01a-INVOICE_ubl => Suffix is missing 01.01a-INVOICE_ubl-report.html

apenski commented 4 years ago

this is a bug in the validator. It treats 01a-INVOICE_ubl as the suffix. This is related to the new output file naming feature introduced in 1.3.1.

We'll provide a fix.

If your intended use case is based on using the API, then you can configure a custom naming strategy (and fix it self for the moment). If you only use the CLI, then you can downgrade to 1.3.0 (should work correctly) or wait until we'll fix it.

apenski commented 4 years ago

@renzok can you please transfer this issue to the other repo

chmoelders commented 4 years ago

@apenski Thank you for the quick response!

apenski commented 4 years ago

fixed in master. @chmoelders maybe you can build and test it.

chmoelders commented 4 years ago

@apenski I can confirm that it works.