Element 'ram:Description' may occur at maximum 1 times.
Description occurs more than once in BuyerTradeParty. The element may appear at most once in this context.
The rule limits the buyer party’s description to at most one Description element.
The buyer details contain Description more than once. You can adjust the XML structure so that there is no more than one such element.
- Locate the repeated
Descriptionelements inBuyerTradeParty. - Make sure that no more than one
Descriptionremains there. - Regenerate the invoice and validate it again.
<ram:BuyerTradeParty> <ram:Description/> <ram:Description/> </ram:BuyerTradeParty>
<ram:BuyerTradeParty> <ram:Description/> </ram:BuyerTradeParty>
Technical details
The test counts the direct Description elements under BuyerTradeParty and requires a count of at most 1.
The rule applies within BuyerTradeParty.
rule/@context)assert/@test)