Element 'ram:Description' may occur at maximum 1 times.
ram:Description occurs more than once in ram:BuyerTradeParty. The element may occur at most once; it may also be absent.
In this context, the buyer information allows at most one description element, preventing multiple descriptions in this field.
The buyer information contains ram:Description more than once. The element may occur at most once and may also be omitted.
- Check
ram:BuyerTradePartyfor repeatedram:Descriptionelements. - Remove any additional
ram:Descriptionelements or omit the element. - Generate the invoice again and validate it again.
<ram:BuyerTradeParty> <ram:Description>First</ram:Description> <ram:Description>Second</ram:Description> </ram:BuyerTradeParty>
<ram:BuyerTradeParty> <ram:Description>Buyer description</ram:Description> </ram:BuyerTradeParty>
Technical details
The XPath test count(ram:Description)<=1 limits the number of direct ram:Description child elements to at most one.
The rule applies to ram:Description within the buyer information ram:BuyerTradeParty.
rule/@context)assert/@test)