Error because of normalize-space getting multiple arguments
VoidTenshi opened this issue · 1 comments
I'm getting the following error when validating an xinvoice:
Error processing schematron validation Schematron rules for EN16931 (CII). Error is A sequence of more than one item is not allowed as the first argument of fn:normalize-space() ("IB", "HS")
It appears when there are multiple "DesignatedProductClassification" elements, like this:
Which seems to be allowed by the documentation:
The error propably accurs because the validator checks this:
normalize-space(ram:SpecifiedTradeProduct/ram:DesignatedProductClassification/ram:ClassCode/@listID)
This shouldn't be an issue with CEN Schematron 1.3.11 / validator-configuration-xrechnung 2023-11-15, which fixed a bug in BR-65. Should the error still occur, though, it would be helpful if you could add an anonymised example file and validation report.