Element 'ram:CountrySubDivisionName' may occur at maximum 1 times.
ram:CountrySubDivisionName occurs more than once in ram:PostalTradeAddress.
The address may contain no more than one entry for the country's subdivision.
ram:CountrySubDivisionName appears more than once in the postal address of the seller's legal organization. No more than one element is allowed for this information.
- Open
ram:PostalTradeAddresswithinram:SpecifiedLegalOrganization. - Keep no more than one
ram:CountrySubDivisionNamein it. - Generate the invoice again and validate it.
<ram:PostalTradeAddress> <ram:CountrySubDivisionName>A</ram:CountrySubDivisionName> <ram:CountrySubDivisionName>B</ram:CountrySubDivisionName> </ram:PostalTradeAddress>
<ram:PostalTradeAddress> <ram:CountrySubDivisionName>A</ram:CountrySubDivisionName> </ram:PostalTradeAddress>
Technical details
The test counts the direct ram:CountrySubDivisionName child elements of ram:PostalTradeAddress and allows zero or one.
The rule applies to ram:CountrySubDivisionName in the postal address within the seller's ram:SpecifiedLegalOrganization.
rule/@context)assert/@test)