Element 'ram:Description' may occur at maximum 1 times.
Within ram:BillingSpecifiedPeriod, ram:Description occurs more than once. This element may appear there no more than once.
The limit ensures that the billing period contains no more than one description and that the XML structure remains unambiguous.
ram:Description occurs more than once in ram:BillingSpecifiedPeriod. This billing period may contain no more than one description.
- Find the repeated
ram:Descriptionelements inram:BillingSpecifiedPeriod. - Remove the extra elements so that no more than one remains.
- Generate the invoice again and validate it once more.
<ram:BillingSpecifiedPeriod> <ram:Description>Premier texte</ram:Description> <ram:Description>Second texte</ram:Description> </ram:BillingSpecifiedPeriod>
<ram:BillingSpecifiedPeriod> <ram:Description>Texte descriptif</ram:Description> </ram:BillingSpecifiedPeriod>
Technical details
The test counts the direct ram:Description elements within ram:BillingSpecifiedPeriod and requires no more than one.
The rule applies to ram:Description within the document-level billing period ram:BillingSpecifiedPeriod.
rule/@context)assert/@test)