Element 'ram:Content' may occur at maximum 1 times.
ram:Content occurs more than once in ram:IncludedNote.
A note can contain at most one content element at this location. Multiple ram:Content elements do not conform to the intended XML structure.
The note on a document associated with an invoice line contains its content more than once. You can adjust the XML structure so that ram:IncludedNote contains only one content element.
- Check the repeated
ram:Contentelements inram:IncludedNote. - Ensure that this element occurs no more than once there.
- Regenerate the invoice and check it again.
<ram:IncludedNote> <ram:Content>Note A</ram:Content> <ram:Content>Note B</ram:Content> </ram:IncludedNote>
<ram:IncludedNote> <ram:Content>Note</ram:Content> </ram:IncludedNote>
Technical details
The Schematron check counts the direct ram:Content elements within ram:IncludedNote and permits no more than one.
The rule applies to ram:IncludedNote on the document associated with an invoice line.
rule/@context)assert/@test)