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