Element 'ram:ID' may occur at maximum 1 times.
ram:ID occurs more than once in ram:ShipFromTradeParty.
The rule limits the number of ship-from identifiers to at most one. Under this rule, ram:ID may be absent.
ram:ID appears more than once in ram:ShipFromTradeParty. Remove the extra occurrences so that the identifier is provided no more than once.
- Locate
ram:ShipFromTradePartyin the delivery information. - Check whether
ram:IDoccurs more than once there and remove any extra occurrences. - Generate the invoice again and validate it.
<ram:ShipFromTradeParty> <ram:ID/> <ram:ID/> </ram:ShipFromTradeParty>
<ram:ShipFromTradeParty> <ram:ID/> </ram:ShipFromTradeParty>
Technical details
The Schematron condition checks whether the number of direct ram:ID elements in the context is at most one.
The rule applies to ram:ID in ram:ShipFromTradeParty within the delivery information.
rule/@context)assert/@test)