Attribute '@schemeID' is required in this context.
The @schemeID attribute is missing from the ram:GlobalID element.
The @schemeID attribute identifies the scheme used to interpret the identifier in ram:GlobalID.
The delivery recipient’s GlobalID does not specify which scheme applies to the identifier. Add the attribute in the XML.
- Locate
ram:GlobalIDunderram:ShipToTradeParty. - Add the
@schemeIDattribute toram:GlobalID. - Generate the invoice again and validate it once more.
<ram:GlobalID>123456</ram:GlobalID>
<ram:GlobalID schemeID="scheme">123456</ram:GlobalID>
Technical details
The XPath test checks whether the @schemeID attribute exists on the current element.
The rule applies to the ram:GlobalID element of the delivery recipient under ShipToTradeParty for an invoice line.
rule/@context)assert/@test)