Truugo vs W3C XML schema error descriptions

Mandatory element

Truugo

Condition:

Invoice issue date is stated on a message.

Error notice:

Line 230: Missing InvoiceDetails/InvoiceDate

W3C XML Schema

230,22: element "OriginalInvoiceNumber" is not allowed for content model "((InvoiceTypeCode,InvoiceTypeText,OriginCode,OriginText,InvoiceNumber,InvoiceDate,OriginalInvoiceNumber,InvoicingPeriodStartDate,InvoicingPeriodEndDate,SellerReferenceIdentifier,SellerReferenceIdentifierUrlText,BuyersSellerIdentifier,SellersBuyerIdentifier,OrderIdentifier,OrderIdentifierUrlText,OrderDate,OrdererName,SalesPersonName,OrderConfirmationIdentifier,OrderConfirmationDate,AgreementIdentifier,AgreementIdentifierUrlText,AgreementTypeText,AgreementTypeCode,AgreementDate,NotificationIdentifier,NotificationDate,RegistrationNumberIdentifier,ControllerIdentifier,ControllerName,ControlDate,BuyerReferenceIdentifier,ProjectReferenceIdentifier,DefinitionDetails,InvoiceTotalVatExcludedAmount,InvoiceTotalVatAmount,InvoiceTotalVatIncludedAmount,InvoiceTotalRoundoffAmount,ExchangeRate,OtherCurrencyAmountVatExcludedAmount,OtherCurrencyAmountVatIncludedAmount,CreditLimitAmount,CreditInterestPercent,OperationLimitAmount,MonthlyAmount,ShortProposedAccountIdentifier,NormalProposedAccountIdentifier,ProposedAccountText,AccountDimensionText,SellerAccountText,VatSpecificationDetails,InvoiceFreeText,InvoiceVatFreeText),PaymentTermsDetails)"

Truugo

Condition:

Each amount has an attribute (AmountCurrencyIdentifier) specifying a currency as a code.

Error notice:

Line 194: Missing InvoiceDetails/InvoiceTotalVatExcludedAmount/@AmountCurrencyIdentifier

W3C XML Schema

194,40: missing required attribute "AmountCurrencyIdentifier"

Truugo

Condition:

Country is identified using two letter code based on ISO 3166-2 code list, for example: "FI".

Error notice:

Line 34: SellerPartyDetails/SellerPostalAddressDetails/CountryCode="FIN"

W3C XML Schema

34,43: value "FIN" has length "3" which is not equal to length facet value "2"

Truugo

Condition:

Bank account is stated either in an international format "IBAN" or in a national format "BBAN". Format is specified for each bank account as an attribute (IdentificationSchemeName).

Error notice:

Line 466: EpiDetails/EpiPartyDetails/EpiBeneficiaryPartyDetails/EpiAccountID/@IdentificationSchemeName="BAN"

W3C XML Schema

466,62: value "BAN" not in enumeration

Truugo

Condition:

Instructed amount stated in epi-details is specified with two decimals.

Error notice:

Line 473: EpiDetails/EpiPaymentInstructionDetails/EpiInstructedAmount=3352

W3C XML Schema

473,91: value "3352" does not match regular expression facet "-?[0-9]{1,15},[0-9]{2}"

Truugo

Condition:

Comma is used as a decimal separator.

Error notice:

Line 473: EpiDetails/EpiPaymentInstructionDetails/EpiInstructedAmount=3352.98

W3C XML Schema

473,94: value "3352.98" does not match regular expression facet "-?[0-9]{1,15},[0-9]{2}"