BR-DE-CVD-05
Wenn innerhalb von … ITEM ATTRIBUTES (BG-32) der … "Item attribute name" (BT-160) den Wert 'cva' hat, muss der … "Item attribute value" (BT-161) einen der zulässigen Werte enthalten.
What the rule checks
As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.
(/ubl:Invoice[$isCVD]/cac:InvoiceLine | /cn:CreditNote[$isCVD]/cac:CreditNoteLine)/cac:Item/cac:AdditionalItemProperty[cbc:Name = 'cva']
normalize-space(cbc:Value) = $CVA-CODES
Checked with XRechnung 3.0 Invoice (UBL), XRechnung 3.0 Credit Note (UBL)
/rsm:CrossIndustryInvoice[$isCVD]/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct/ram:ApplicableProductCharacteristic[ram:Description = 'cva']
normalize-space(ram:Value) = $CVA-CODES
Checked with XRechnung 3.0 Invoice (CII)