Element 'ram:ClassName' may occur at maximum 1 times.
A product classification contains more than one ram:ClassName element. This element may occur at most once within a ram:DesignatedProductClassification.
The structure allows at most one class name for each product classification. Multiple class names in this place do not match the required XML structure.
ram:ClassName appears more than once in a product classification. You can adjust the classification so that it contains at most one class name.
- Locate the affected
ram:DesignatedProductClassification. - Remove any extra
ram:ClassNameelements so that at most one remains. - Regenerate the invoice and check it again.
<ram:DesignatedProductClassification> <ram:ClassName>A</ram:ClassName> <ram:ClassName>B</ram:ClassName> </ram:DesignatedProductClassification>
<ram:DesignatedProductClassification> <ram:ClassName>A</ram:ClassName> </ram:DesignatedProductClassification>
Technical details
The rule counts the direct ram:ClassName elements in the context of ram:DesignatedProductClassification and allows zero or one.
The rule applies to ram:ClassName within a product classification (ram:DesignatedProductClassification) on an invoice line.
rule/@context)assert/@test)