Element 'ram:ID' may occur at maximum 1 times.
The ram:SellerTaxRepresentativeTradeParty element contains more than one ram:ID element. In this context, ram:ID may occur at most once.
The rule limits the number of tax representative identifiers to one. It does not require an identifier to be present.
More than one ram:ID element is provided for the tax representative. This rule allows no more than one here.
- Locate
ram:SellerTaxRepresentativeTradePartyin the invoice. - Remove the extra
ram:IDelements so that no more than one remains. - Generate the invoice again and validate it again.
<ram:SellerTaxRepresentativeTradeParty> <ram:ID>1</ram:ID> <ram:ID>2</ram:ID> </ram:SellerTaxRepresentativeTradeParty>
<ram:SellerTaxRepresentativeTradeParty> <ram:ID>1</ram:ID> </ram:SellerTaxRepresentativeTradeParty>
Technical details
The test counts ram:ID elements directly under ram:SellerTaxRepresentativeTradeParty and requires a count of no more than one.
The rule applies to ram:ID elements within ram:SellerTaxRepresentativeTradeParty.
rule/@context)assert/@test)