DT-CIUS-PT-139_5

The BT-160 when fill out with '#LINEID@COMMITMENTLINEREFERENCE#', can only exist once.

error: the document is invalid

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.

Context
//ubl:Invoice/cac:InvoiceLine/cac:Item/cac:AdditionalItemProperty/cbc:Name | //cn:CreditNote/cac:CreditNoteLine/cac:Item/cac:AdditionalItemProperty/cbc:Name
Test
starts-with(normalize-space(.),'#LINEID@COMMITMENTLINEREFERENCE#') and $cnt139_5 > $cntLine

Checked with Portugal CIUS-PT Invoice (UBL), Portugal CIUS-PT Credit Note (UBL)