Skip to content

Namespaces werden bei XPaths im Report seit neustem Config-Release scheinbar nicht mehr korrekt aufgelöst #137

Description

@Jannik-obwyse

Hi,

seitdem ich die neuste KOSIT Konfiguration für XRechnung Validierungen eingebunden habe, werden Namespaces in den XPaths der Fehlermeldungen nicht mehr korrekt aufgelöst. Ich gehe davon aus, dass das ein Bug ist und bei der Umstellung zwischen den Versionen nicht aufgefallen ist.

Auszug aus Beispiel-Report mit neustem Release:

<rep:validationStepResult id="val-sch.1" valid="false"> <s:resource> <s:name>Schematron rules for EN16931 (CII)</s:name> <s:location>resources/cii/16b/xsl/EN16931-CII-validation.xsl</s:location> </s:resource> <rep:message id="val-sch.1.1" level="error" xpathLocation="/Q{urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100}CrossIndustryInvoice[1]/Q{urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100}SupplyChainTradeTransaction[1]/Q{urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100}IncludedSupplyChainTradeLineItem[1]" code="BR-DEC-23">[BR-DEC-23]-The allowed maximum number of decimals for the Invoice line net amount (BT-131) is 2. </rep:message> <rep:message id="val-sch.1.2" level="error" xpathLocation="/Q{urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100}CrossIndustryInvoice[1]/Q{urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100}SupplyChainTradeTransaction[1]/Q{urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100}IncludedSupplyChainTradeLineItem[2]" code="BR-DEC-23">[BR-DEC-23]-The allowed maximum number of decimals for the Invoice line net amount (BT-131) is 2. </rep:message> </rep:validationStepResult>

Auszug aus Beispiel-Report mit Release vom 10.07.2025:

<rep:validationStepResult id="val-sch.1" valid="false"> <s:resource> <s:name>Schematron rules for EN16931 (CII)</s:name> <s:location>resources/cii/16b/xsl/EN16931-CII-validation.xsl</s:location> </s:resource> <rep:message id="val-sch.1.1" level="error" xpathLocation="/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction[1]/ram:IncludedSupplyChainTradeLineItem[1]" code="BR-DEC-23">[BR-DEC-23]-The allowed maximum number of decimals for the Invoice line net amount (BT-131) is 2. </rep:message> <rep:message id="val-sch.1.2" level="error" xpathLocation="/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction[1]/ram:IncludedSupplyChainTradeLineItem[2]" code="BR-DEC-23">[BR-DEC-23]-The allowed maximum number of decimals for the Invoice line net amount (BT-131) is 2. </rep:message> </rep:validationStepResult>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

syntax/ciiRelates to CII syntax

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions