Attribute '@schemeID' is required in this context.
The schemeID attribute is missing from the buyer agent’s GlobalID element.
The schemeID attribute is required in this context so that the global identifier is provided together with its identification scheme.
The buyer agent’s global identifier is missing the schemeID attribute. Add this attribute so the identifier includes the required identification scheme.
- Find
GlobalIDinBuyerAgentTradeParty. - Add the
schemeIDattribute to theGlobalIDelement. - Generate the invoice again and validate it once more.
<ram:BuyerAgentTradeParty> <ram:GlobalID>12345</ram:GlobalID> </ram:BuyerAgentTradeParty>
<ram:BuyerAgentTradeParty> <ram:GlobalID schemeID="ABC">12345</ram:GlobalID> </ram:BuyerAgentTradeParty>
Technical details
The test checks whether the schemeID attribute is present on the current element.
The rule applies to the GlobalID element of BuyerAgentTradeParty and its schemeID attribute.
rule/@context)assert/@test)