Attribute '@schemeID' is required in this context.
The schemeID attribute is missing from ram:GlobalID.
The schemeID attribute identifies the scheme used to interpret the global identifier provided in ram:GlobalID.
The global identifier for the ship-to party does not specify which scheme it belongs to. Add the schemeID attribute to ram:GlobalID.
- Locate
ram:GlobalIDfor the party at the ship-to address. - Add the
schemeIDattribute to that element. - Generate the invoice again and validate it.
<ram:GlobalID>12345</ram:GlobalID>
<ram:GlobalID schemeID="identifier-scheme">12345</ram:GlobalID>
Technical details
The XPath test checks whether the schemeID attribute is present on the context element.
The rule applies to ram:GlobalID of the party at the ship-to address.
rule/@context)assert/@test)