Element 'ram:ID' must occur exactly 1 times.
This ram:SpecifiedTaxRegistration contains multiple ram:ID elements. The rule requires exactly one such element.
The rule limits this tax registration to exactly one identifier. Multiple identifier elements make the contents of this registration ambiguous.
The product manufacturer's tax registration with scheme VA contains more than one ram:ID element. You can correct the invoice by leaving exactly one such element there.
- Locate the manufacturer's
ram:SpecifiedTaxRegistrationwhoseram:IDhasschemeID="VA". - Check how many
ram:IDelements it contains. - Ensure that it contains exactly one
ram:IDelement. - Generate the invoice again and validate it again.
<ram:SpecifiedTaxRegistration> <ram:ID schemeID="VA">A</ram:ID> <ram:ID schemeID="VA">B</ram:ID> </ram:SpecifiedTaxRegistration>
<ram:SpecifiedTaxRegistration> <ram:ID schemeID="VA">A</ram:ID> </ram:SpecifiedTaxRegistration>
Technical details
The test counts the direct ram:ID elements in ram:SpecifiedTaxRegistration and requires the count to be exactly one.
The rule applies to ram:SpecifiedTaxRegistration for the product manufacturer, where ram:ID has the attribute schemeID="VA".
rule/@context)assert/@test)