Attribute '@schemeID' is required in this context.
The ram:ID element of the legal organization has no @schemeID attribute. As a result, the scheme used to interpret the identifier is not specified.
@schemeID associates the identifier with an identification scheme. Without it, the identifier cannot be unambiguously associated with its scheme.
The ram:ID element for the delivery recipient’s legal organization is missing @schemeID. You can resolve this by adding the identification scheme there.
- Add
@schemeIDto theram:IDelement of the delivery recipient’s legal organization. - Generate the invoice again and validate it once more.
<ram:ID>123</ram:ID>
<ram:ID schemeID="...">123</ram:ID>
Technical details
The Schematron check requires the @schemeID attribute in the context of ram:ID.
The rule applies to ram:ID of the legal organization under ram:ShipToTradeParty of an invoice line.
rule/@context)assert/@test)