Element 'ram:CountrySubDivisionName' may occur at maximum 1 times.
In ram:PostalTradeAddress, ram:CountrySubDivisionName occurs more than once. The element may occur at most once.
The payer’s legal organization address may contain at most one name for a subdivision of the country.
The payer’s legal organization address contains ram:CountrySubDivisionName more than once. This element may appear at most once.
- Find
ram:PostalTradeAddresswithin the payer’sram:SpecifiedLegalOrganization. - Make sure
ram:CountrySubDivisionNameoccurs no more than once in it. - Generate the invoice again and validate it.
<ram:SpecifiedLegalOrganization> <ram:PostalTradeAddress> <ram:CountrySubDivisionName>A</ram:CountrySubDivisionName> <ram:CountrySubDivisionName>B</ram:CountrySubDivisionName> </ram:PostalTradeAddress> </ram:SpecifiedLegalOrganization>
<ram:SpecifiedLegalOrganization> <ram:PostalTradeAddress> <ram:CountrySubDivisionName>A</ram:CountrySubDivisionName> </ram:PostalTradeAddress> </ram:SpecifiedLegalOrganization>
Technical details
The Schematron condition counts the child elements ram:CountrySubDivisionName and allows no more than one occurrence.
The rule applies to ram:PostalTradeAddress within the payer’s ram:SpecifiedLegalOrganization.
rule/@context)assert/@test)