Element 'ram:Content' may occur at maximum 1 times.
In ram:IncludedNote, ram:Content occurs more than once. The element may occur no more than once.
ram:Content contains the content of a note. Multiple ram:Content elements within the same note are not allowed in this context.
ram:Content appears multiple times in one ram:IncludedNote. Remove the extra occurrences so that the note has no more than one content element.
- Locate the affected
ram:IncludedNotein the document header. - Check how many times
ram:Contentoccurs in that note. - Remove extra
ram:Contentelements so that no more than one remains. - Generate the invoice again and validate it once more.
<ram:IncludedNote> <ram:Content>Texte</ram:Content> <ram:Content>Autre texte</ram:Content> </ram:IncludedNote>
<ram:IncludedNote> <ram:Content>Texte</ram:Content> </ram:IncludedNote>
Technical details
The rule uses count(ram:Content)<=1 to ensure that zero or one ram:Content occurs in each ram:IncludedNote.
The rule applies in ram:IncludedNote within ram:ExchangedDocument in the invoice header.
rule/@context)assert/@test)