Element 'ram:SpecifiedTaxRegistration' may occur at maximum 1 times.
ram:SpecifiedTaxRegistration appears more than once in ram:ShipFromTradeParty. The test allows this element at most once.
The rule limits the number of tax registration details for the consignor conveyed through this element.
ram:SpecifiedTaxRegistration has been provided more than once for the consignor. This element may appear no more than once in this section.
- Find
ram:ShipFromTradePartyin the delivery details. - Check the
ram:SpecifiedTaxRegistrationelements it contains and remove any extra occurrences. - Generate the invoice again and validate it once more.
<ram:ShipFromTradeParty> <ram:SpecifiedTaxRegistration/> <ram:SpecifiedTaxRegistration/> </ram:ShipFromTradeParty>
<ram:ShipFromTradeParty> <ram:SpecifiedTaxRegistration/> </ram:ShipFromTradeParty>
Technical details
The XPath test counts the direct ram:SpecifiedTaxRegistration elements within ram:ShipFromTradeParty and requires the count to be no greater than one.
The rule applies to ram:SpecifiedTaxRegistration within ram:ShipFromTradeParty.
rule/@context)assert/@test)