Element 'ram:Description' may occur at maximum 1 times.
Within ram:BillingSpecifiedPeriod, ram:Description occurs more than once. The test permits at most one such element.
Limiting ram:Description to one occurrence keeps the billing period description unambiguous and avoids repeated descriptions at this location.
ram:Description occurs more than once in ram:BillingSpecifiedPeriod. You can resolve this by having no more than one description there.
- Find all
ram:Descriptionelements inram:BillingSpecifiedPeriod. - Keep no more than one
ram:Descriptionelement. - Generate the invoice again and validate it.
<ram:BillingSpecifiedPeriod> <ram:Description>Première description</ram:Description> <ram:Description>Deuxième description</ram:Description> </ram:BillingSpecifiedPeriod>
<ram:BillingSpecifiedPeriod> <ram:Description>Description de la période</ram:Description> </ram:BillingSpecifiedPeriod>
Technical details
The test counts the direct ram:Description child elements of ram:BillingSpecifiedPeriod and requires their number to be at most 1.
The rule applies to ram:Description within ram:BillingSpecifiedPeriod in the document-level billing information.
rule/@context)assert/@test)