Element 'ram:RateApplicablePercent' must occur exactly 1 times.
ram:RateApplicablePercent is missing from ram:AppliedTradeTax, or the element occurs more than once.
ram:RateApplicablePercent contains the applicable tax rate as a percentage. Exactly one element states this value unambiguously.
The tax information for the logistics service is missing the tax rate, or it includes it more than once. A single entry makes the value clear.
- Find the relevant
ram:AppliedTradeTax. - Add exactly one
ram:RateApplicablePercentinside it and remove any duplicates. - Generate the invoice again and validate it again.
<ram:AppliedTradeTax/>
<ram:AppliedTradeTax> <ram:RateApplicablePercent>19</ram:RateApplicablePercent> </ram:AppliedTradeTax>
Technical details
The test uses count(ram:RateApplicablePercent)=1 to check that ram:AppliedTradeTax contains exactly one ram:RateApplicablePercent element.
The rule applies inside ram:AppliedTradeTax, which belongs to the tax information for a logistics service.
rule/@context)assert/@test)