Attribute '@schemeID' is required in this context.
The ram:GlobalID element in InvoicerTradeParty does not have a @schemeID attribute.
The @schemeID attribute identifies the scheme of the global identifier in ram:GlobalID. Without the attribute, the identifier’s scheme is not stated.
The @schemeID attribute is missing from the invoice issuer’s ram:GlobalID. Add the attribute to state the identifier’s scheme.
- Locate
ram:GlobalIDinInvoicerTradeParty. - Add the
@schemeIDattribute to the element. - Generate the invoice again and validate it once more.
<ram:InvoicerTradeParty> <ram:GlobalID>identifier</ram:GlobalID> </ram:InvoicerTradeParty>
<ram:InvoicerTradeParty> <ram:GlobalID schemeID="value">identifier</ram:GlobalID> </ram:InvoicerTradeParty>
Technical details
The test checks for the presence of @schemeID on the ram:GlobalID context; it does not evaluate an attribute value.
For ram:GlobalID in InvoicerTradeParty, the @schemeID attribute is required.
rule/@context)assert/@test)