Message

Swedish organization number MUST be stated in the correct format.

Context
cbc:EndpointID[@schemeID = '0007'] | cac:PartyIdentification/cbc:ID[@schemeID = '0007'] | cbc:CompanyID[@schemeID = '0007']
Test
string-length(normalize-space()) = 10 and string(number(normalize-space())) != 'NaN'