Element 'ram:CompleteNumber' must occur exactly 1 times.
ram:CompleteNumber is missing from ram:FaxUniversalCommunication or appears more than once. The test requires exactly one ram:CompleteNumber element.
The ram:CompleteNumber element contains the fax number. The rule ensures that exactly one number value is present for the fax communication detail.
ram:CompleteNumber is missing or appears more than once for the consignor contact’s fax communication. Exactly one such element is required in this section.
- Find
ram:FaxUniversalCommunicationfor the consignor’s contact. - Make sure this element contains exactly one
ram:CompleteNumber. - Generate the invoice again and validate it once more.
<ram:FaxUniversalCommunication/>
<ram:FaxUniversalCommunication> <ram:CompleteNumber>+33123456789</ram:CompleteNumber> </ram:FaxUniversalCommunication>
Technical details
The XPath test counts the direct ram:CompleteNumber elements within ram:FaxUniversalCommunication and requires exactly one.
The rule applies to ram:CompleteNumber within ram:FaxUniversalCommunication for the consignor’s contact.
rule/@context)assert/@test)