Attribute '@schemeID' is required in this context.
The schemeID attribute is missing from the ram:ID element.
schemeID identifies the scheme of the identifier in this tax registration.
The ram:ID element in ram:SpecifiedTaxRegistration is missing schemeID. You can add the attribute to state the identifier scheme.
- Look for
ram:IDin the buyer’s tax representative’sram:SpecifiedTaxRegistration. - Add the
schemeIDattribute to theram:IDelement. - Generate the invoice again and validate it.
<ram:SpecifiedTaxRegistration> <ram:ID>123</ram:ID> </ram:SpecifiedTaxRegistration>
<ram:SpecifiedTaxRegistration> <ram:ID schemeID="X">123</ram:ID> </ram:SpecifiedTaxRegistration>
Technical details
The XPath test directly checks whether the @schemeID attribute is present on the current ram:ID element.
The rule applies to the ram:ID element in the buyer’s tax representative’s ram:SpecifiedTaxRegistration.
rule/@context)assert/@test)