Element 'ram:Name' may occur at maximum 1 times.
ram:Name occurs more than once under rsm:ExchangedDocument. At most one such element is allowed in this context.
The limit keeps the document data unambiguous by preventing repeated ram:Name elements at this location.
The invoice document data contain ram:Name more than once. Remove the duplicate so that the element occurs only once there.
- Find the repeated
ram:Nameelements underrsm:ExchangedDocument. - Leave no more than one
ram:Nameelement there. - Generate the invoice again and validate it.
<rsm:ExchangedDocument> <ram:Name>First</ram:Name> <ram:Name>Second</ram:Name> </rsm:ExchangedDocument>
<rsm:ExchangedDocument> <ram:Name>Name</ram:Name> </rsm:ExchangedDocument>
Technical details
The test counts the direct child elements ram:Name of rsm:ExchangedDocument and allows no more than one.
The rule applies directly under rsm:ExchangedDocument in the invoice document data.
rule/@context)assert/@test)