Element 'ram:Name' may occur at maximum 1 times.
In ram:ExchangedDocument, ram:Name occurs more than once. The element may occur no more than once.
ram:Name is an optional element of the invoice document. Multiple occurrences of this element are not allowed in this context.
ram:Name appears multiple times in the document header. Remove the extra occurrences so that the element appears no more than once.
- Locate
ram:ExchangedDocumentin the XML. - Check how many times
ram:Nameoccurs inside it. - Remove extra
ram:Nameelements so that no more than one remains. - Generate the invoice again and validate it once more.
<ram:ExchangedDocument> <ram:Name>Facture</ram:Name> <ram:Name>Copie</ram:Name> </ram:ExchangedDocument>
<ram:ExchangedDocument> <ram:Name>Facture</ram:Name> </ram:ExchangedDocument>
Technical details
The rule uses count(ram:Name)<=1 to ensure that zero or one ram:Name occurs in the context.
The rule applies in the invoice header element ram:ExchangedDocument.
rule/@context)assert/@test)