Element variant 'ram:SpecifiedTaxRegistration[ram:ID/@schemeID="FC"]' may occur at maximum 2 times.
The manufacturer section contains more than two ram:SpecifiedTaxRegistration elements whose child ram:ID has the attribute schemeID="FC".
The rule limits the number of manufacturer tax registrations using scheme FC to two. More than two such entries do not conform to the specified XML structure.
More than two tax registrations with scheme FC are provided for a product’s manufacturer. You can adjust the number to the permitted maximum.
- Count the
ram:SpecifiedTaxRegistrationelements withram:ID/@schemeID="FC"in the manufacturer section. - Make sure there are no more than two such elements.
- Generate the invoice again and validate it once more.
<ram:ManufacturerTradeParty> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="FC">A</ram:ID> </ram:SpecifiedTaxRegistration> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="FC">B</ram:ID> </ram:SpecifiedTaxRegistration> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="FC">C</ram:ID> </ram:SpecifiedTaxRegistration> </ram:ManufacturerTradeParty>
<ram:ManufacturerTradeParty> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="FC">A</ram:ID> </ram:SpecifiedTaxRegistration> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="FC">B</ram:ID> </ram:SpecifiedTaxRegistration> </ram:ManufacturerTradeParty>
Technical details
The check counts ram:SpecifiedTaxRegistration elements whose ram:ID/@schemeID is exactly FC; zero to two are allowed.
The rule applies to ram:SpecifiedTaxRegistration within the manufacturer details of a product on an invoice line.
rule/@context)assert/@test)