Element 'ram:RoleCode' may occur at maximum 1 times.
ram:ShipToTradeParty contains more than one ram:RoleCode element.
ram:RoleCode specifies the role of the ship-to party. In this context, the role may be stated no more than once.
ram:RoleCode appears more than once under the ship-to party. This element may appear no more than once in this section.
- Find
ram:ShipToTradePartyin the delivery information. - Ensure that it contains no more than one
ram:RoleCodeelement. - Regenerate the invoice and validate it again.
<ram:ShipToTradeParty> <ram:RoleCode>ROLE1</ram:RoleCode> <ram:RoleCode>ROLE2</ram:RoleCode> </ram:ShipToTradeParty>
<ram:ShipToTradeParty> <ram:RoleCode>ROLE</ram:RoleCode> </ram:ShipToTradeParty>
Technical details
The test limits the number of direct ram:RoleCode child elements of ram:ShipToTradeParty to at most one; zero occurrences are allowed.
The rule applies to ram:RoleCode within ram:ShipToTradeParty.
rule/@context)assert/@test)