Element 'ram:ID' may occur at maximum 1 times.
The ram:SalesAgentTradeParty element contains more than one ram:ID. This context allows no more than one sales agent identifier.
Limiting the element to one identifier provides a single, unambiguous identifier for the sales agent.
Several ram:ID elements are present in the sales agent section. This element may appear there no more than once.
- Find
ram:SalesAgentTradePartyin the agreement. - Remove any extra
ram:IDelements so that no more than one remains. - Generate the invoice again and validate it.
<ram:SalesAgentTradeParty> <ram:ID>A</ram:ID> <ram:ID>B</ram:ID> </ram:SalesAgentTradeParty>
<ram:SalesAgentTradeParty> <ram:ID>A</ram:ID> </ram:SalesAgentTradeParty>
Technical details
The rule counts the direct ram:ID elements under ram:SalesAgentTradeParty and allows zero or one.
The rule applies to ram:ID within ram:SalesAgentTradeParty in the agreement.
rule/@context)assert/@test)