Element 'ram:LanguageID' may occur at maximum 1 times.
In ram:ExchangedDocument, ram:LanguageID occurs more than once. The element may occur no more than once.
ram:LanguageID is an optional element for specifying the language of the document. Multiple occurrences of this element are not allowed in the header.
ram:LanguageID 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:LanguageIDoccurs inside it. - Remove extra
ram:LanguageIDelements so that no more than one remains. - Generate the invoice again and validate it once more.
<ram:ExchangedDocument> <ram:LanguageID>de</ram:LanguageID> <ram:LanguageID>en</ram:LanguageID> </ram:ExchangedDocument>
<ram:ExchangedDocument> <ram:LanguageID>de</ram:LanguageID> </ram:ExchangedDocument>
Technical details
The rule uses count(ram:LanguageID)<=1 to ensure that zero or one ram:LanguageID occurs in the context.
The rule applies in the invoice header element ram:ExchangedDocument.
rule/@context)assert/@test)