/
*:
[namespace-uri()='
']
[
]
/
@sch:schema
@*[local-name()='
' and namespace-uri()='
']
/
[
]
/@
.
U
U
U.
n
U.
_
_
Checking OIOUBL-2.02 Invoice, 2016-09-15, Version 1.8.0.33360
ext:UBLExtensions/ext:UBLExtension/ext:ExtensionAgencyID = 'Digitaliseringsstyrelsen' and (ext:UBLExtensions/ext:UBLExtension/cbc:ID < '1001' or ext:UBLExtensions/ext:UBLExtension/cbc:ID > '1999')
[F-LIB313] Invalid UBLExtension/ID when UBLExtension/ExtensionAgencyID is equal to 'Digitaliseringsstyrelsen'. ID must be an assigned value between '1001' and '1999'.
/[]
local-name(*) = 'Invoice'
[F-INV001] Root element must be Invoice
/[]
namespace-uri(*) = 'urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'
[F-INV336] The documenttype does not match an OIOUBL Invoice and can not be validated by this schematron.
/[]
cbc:UBLVersionID = '2.0'
[F-LIB001] Invalid UBLVersionID. Must be '2.0'
/[]
cbc:CustomizationID = 'OIOUBL-2.01' or cbc:CustomizationID = 'OIOUBL-2.02'
[F-LIB002] Invalid CustomizationID. Must be either 'OIOUBL-2.01' or 'OIOUBL-2.02'
/[]
cbc:ProfileID/@schemeID = $Profile1_schemeID or cbc:ProfileID/@schemeID = $Profile2_schemeID or cbc:ProfileID/@schemeID = $Profile3_schemeID or cbc:ProfileID/@schemeID = $Profile4_schemeID or cbc:ProfileID/@schemeID = $Profile5_schemeID
[W-LIB003] Invalid schemeID. Must be '
' or '
' or '
' or '
' or '
'
/[]
cbc:ProfileID/@schemeAgencyID = $Profile1_agencyID
[W-LIB203] Invalid schemeAgencyID. Must be '
'
/[]
cbc:ProfileID/@schemeID = $Profile1_schemeID and not (contains($Profile1, concat(',',cbc:ProfileID,',')))
[F-LIB004] Invalid ProfileID: '
'. Must be a value from the codelist
/[]
cbc:ProfileID/@schemeID = $Profile2_schemeID and not (contains($Profile2, concat(',',cbc:ProfileID,',')))
[F-LIB302] Invalid ProfileID: '
'. Must be a value from the codelist
/[]
cbc:ProfileID/@schemeID = $Profile3_schemeID and not (contains($Profile3, concat(',',cbc:ProfileID,',')))
[F-LIB308] Invalid ProfileID: '
'. Must be a value from the codelist
/[]
cbc:ProfileID/@schemeID = $Profile4_schemeID and not (contains($Profile4, concat(',',cbc:ProfileID,',')))
[F-LIB325] Invalid ProfileID: '
'. Must be a value from the codelist
/[]
cbc:ProfileID/@schemeID = $Profile5_schemeID and not (contains($Profile5, concat(',',cbc:ProfileID,',')))
[F-LIB327] Invalid ProfileID: '
'. Must be a value from the codelist
/[]
($Profile = 'Procurement-OrdRes-1.0') and not ($Document = 'OrderResponse')
[F-LIB328] The profile '
' is not allowed in the document type '
'
/[]
$Simple and not(cac:OrderReference)
[F-INV002] There must be an OrderReference class for this profileID
/[]
count(cac:TaxRepresentativeParty) = 0
[W-INV003] TaxRepresentativeParty class must be excluded
/[]
cbc:DocumentCurrencyCode != ''
[F-INV007] Invalid DocumentCurrencyCode. Must contain a value
/[]
count(cac:TaxTotal) != 0
[F-INV008] One or more TaxTotal class must be present
/[]
normalize-space(cbc:ID) != ''
[F-INV009] Invalid Invoice/ID (Invoice number). Must contain a value.
/[]
cbc:AccountingCost and cbc:AccountingCostCode
[F-LIB021] Use either AccountingCost or AccountingCostCode
/[]
count(cac:InvoicePeriod) > 1
[F-INV004] No more than one InvoicePeriod class may be present
/[]
string-length(string(.)) = 36
[F-LIB006] Invalid
. Must be of this form '6E09886B-DC6E-439F-82D1-7CCAC7F4E3B1'
/[]
./@listID = $InvTypeCode_listID or ./@listID = $InvTypeCode2_listID
[W-INV010] Invalid listID. Must be '
' or '
'
/[]
./@listAgencyID = $InvTypeCode_agencyID
[W-INV005] Invalid listAgencyID. Must be '
'
/[]
./@listID = $InvTypeCode_listID and not (contains($InvTypeCode, concat(',',.,',')))
[F-INV011] Invalid InvoiceTypeCode: '
'. Must be a value from the codelist
/[]
./@listID = $InvTypeCode2_listID and not (contains($InvTypeCode2, concat(',',.,',')))
[F-INV337] Invalid InvoiceTypeCode: '
'. Must be a value from the codelist
/[]
count(../cbc:Note) > 1 and not(./@languageID)
[W-LIB011] The attribute languageID should be used when more than one
element is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/@languageID = self::*/@languageID
[W-LIB012] Multilanguage error. Replicated
elements with same languageID attribute value
/[]
/*/cac:InvoiceLine/cbc:LineExtensionAmount[@currencyID][@currencyID!=string(current())]
[F-INV012] There is a LineExtensionAmount for one or more invoice lines where the currencyID does not equal the DocumentCurrencyCode
/[]
/*/cac:LegalMonetaryTotal/cbc:LineExtensionAmount[@currencyID][@currencyID!=string(current())]
[F-INV013] There is a LineExtensionAmount where the currencyID does not equal the DocumentCurrencyCode
/[]
/*/cac:LegalMonetaryTotal/cbc:PayableAmount[@currencyID][@currencyID!=string(current())]
[F-INV014] There is a PayableAmount where the currencyID does not equal the DocumentCurrencyCode
/[]
./@listID and ./@listID != $CurrencyCode_listID
[F-LIB296] Invalid listID. Must be '
'
/[]
./@listAgencyID and ./@listAgencyID != $CurrencyCode_agencyID
[F-LIB297] Invalid listAgencyID. Must be '
'
/[]
contains($CurrencyCode, concat(',',.,','))
[F-LIB298] Invalid CurrencyCode: '
'. Must be a value from the codelist
/[]
//cbc:TaxAmount[@currencyID][@currencyID!=string(current())]
[F-INV015] There is a TaxAmount where the currencyID does not equal the TaxCurrencyCode
/[]
.='DKK' or . ='EUR'
[F-INV016] TaxCurrencyCode must be either DKK or EUR
/[]
count(/*/cac:TaxExchangeRate) != 0
[F-INV017] One TaxExchangeRate class must be present when TaxCurrencyCode element is used
/[]
count(/*/cac:TaxTotal/cac:TaxSubtotal/cbc:TransactionCurrencyTaxAmount) != 0
[F-INV018] One TransactionCurrencyTaxAmount element must be present when TaxCurrencyCode element is used
/[]
./@listID and ./@listID != $CurrencyCode_listID
[F-LIB296] Invalid listID. Must be '
'
/[]
./@listAgencyID and ./@listAgencyID != $CurrencyCode_agencyID
[F-LIB297] Invalid listAgencyID. Must be '
'
/[]
contains($CurrencyCode, concat(',',.,','))
[F-LIB298] Invalid CurrencyCode: '
'. Must be a value from the codelist
/[]
/*/cac:InvoiceLine/cac:Price/cbc:PriceAmount[@currencyID][@currencyID!=string(current())]
[F-INV019] There is a PriceAmount where the currencyID does not equal the PricingCurrencyCode
/[]
count(/*/cac:PricingExchangeRate) != 0
[F-INV020] One PricingExchangeRate class must be present when PricingCurrencyCode element is used
/[]
./@listID and ./@listID != $CurrencyCode_listID
[F-LIB296] Invalid listID. Must be '
'
/[]
./@listAgencyID and ./@listAgencyID != $CurrencyCode_agencyID
[F-LIB297] Invalid listAgencyID. Must be '
'
/[]
contains($CurrencyCode, concat(',',.,','))
[F-LIB298] Invalid CurrencyCode: '
'. Must be a value from the codelist
/[]
count(/*/cac:PaymentExchangeRate) != 0
[F-INV021] One PaymentExchangeRate class must be present when PaymentCurrencyCode element is used
/[]
./@listID and ./@listID != $CurrencyCode_listID
[F-LIB296] Invalid listID. Must be '
'
/[]
./@listAgencyID and ./@listAgencyID != $CurrencyCode_agencyID
[F-LIB297] Invalid listAgencyID. Must be '
'
/[]
contains($CurrencyCode, concat(',',.,','))
[F-LIB298] Invalid CurrencyCode: '
'. Must be a value from the codelist
/[]
count(/*/cac:PaymentAlternativeExchangeRate) != 0
[F-INV022] One PaymentAlternativeExchangeRate class must be present when PaymentAlternativeCurrencyCode element is used
/[]
./@listID and ./@listID != $CurrencyCode_listID
[F-LIB296] Invalid listID. Must be '
'
/[]
./@listAgencyID and ./@listAgencyID != $CurrencyCode_agencyID
[F-LIB297] Invalid listAgencyID. Must be '
'
/[]
contains($CurrencyCode, concat(',',.,','))
[F-LIB298] Invalid CurrencyCode: '
'. Must be a value from the codelist
/[]
count(cbc:DurationMeasure) = 0
[F-LIB076] DurationMeasure element must be excluded
/[]
count(cbc:DescriptionCode) = 0
[F-LIB077] DescriptionCode element must be excluded
/[]
(cbc:StartTime) and (not(cbc:StartDate) or cbc:StartDate = '')
[F-LIB078] There must be a StartDate if you have a StartTime
/[]
(cbc:EndTime) and (not(cbc:EndDate) or cbc:EndDate = '')
[F-LIB079] There must be a EndDate if you have a EndTime
/[]
(cbc:StartDate and cbc:EndDate) and not(number(translate(cbc:EndDate,'-','')) > number(translate(cbc:StartDate,'-','')) or number(translate(cbc:EndDate,'-','')) = number(translate(cbc:StartDate,'-','')))
[F-LIB080] The EndDate must be greater or equal to the startdate
/[]
(cbc:StartTime and cbc:EndTime) and not(number(translate(cbc:EndTime,':','')) > number(translate(cbc:StartTime,':','')) or number(translate(cbc:EndTime,':','')) = number(translate(cbc:StartTime,':','')))
[F-LIB081] EndTime must be greater or equal to StartTime
/[]
count(../cbc:Description) > 1 and not(./@languageID)
[W-LIB222] The attribute languageID should be used when more than one Description element is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/@languageID = self::*/@languageID
[W-LIB223] Multilanguage error. Replicated Description elements with same languageID attribute value
/[]
normalize-space(cbc:ID) != ''
[F-INV024] Invalid OrderReference/ID. Must contain a value.
/[]
string-length(string(.)) = 36
[F-LIB006] Invalid
. Must be of this form '6E09886B-DC6E-439F-82D1-7CCAC7F4E3B1'
/[]
count(cbc:DocumentType) = 0
[F-LIB170] DocumentType element must be excluded
/[]
count(cbc:DocumentTypeCode) = 0
[F-LIB172] DocumentTypeCode element must be excluded
/[]
cac:Attachment and cbc:XPath
[F-LIB169] Use either Attachment or XPath
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and cac:Attachment/cac:ExternalReference
[F-LIB171] Use either EmbeddedDocumentBinaryObject or ExternalReference
/[]
cbc:UUID and not(string-length(string(cbc:UUID)) = 36)
[F-LIB173] Invalid UUID. Must be of this form '6E09886B-DC6E-439F-82D1-7CCAC7F4E3B1'
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and not(cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/tiff' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/png' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/jpeg' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/gif' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='application/pdf' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='text/xml')
[F-LIB174] Attribute mimeCode must be a value from the codelist
/[]
cac:Attachment/cac:ExternalReference and not(cac:Attachment/cac:ExternalReference/cbc:URI != '')
[F-LIB096] When using ExternalReference, URI is mandatory
/[]
count(cac:DebitNoteDocumentReference) = 0
[F-INV025] DebitNoteDocumentReference class must be excluded
/[]
count(cac:AdditionalDocumentReference) = 0
[F-INV026] AdditionalDocumentReference class must be excluded
/[]
count(cac:BillingReferenceLine) = 0
[F-INV295] BillingReferenceLine class must be excluded
/[]
count(cbc:DocumentType) = 0
[F-LIB170] DocumentType element must be excluded
/[]
count(cbc:DocumentTypeCode) = 0
[F-LIB172] DocumentTypeCode element must be excluded
/[]
cac:Attachment and cbc:XPath
[F-LIB169] Use either Attachment or XPath
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and cac:Attachment/cac:ExternalReference
[F-LIB171] Use either EmbeddedDocumentBinaryObject or ExternalReference
/[]
cbc:UUID and not(string-length(string(cbc:UUID)) = 36)
[F-LIB173] Invalid UUID. Must be of this form '6E09886B-DC6E-439F-82D1-7CCAC7F4E3B1'
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and not(cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/tiff' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/png' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/jpeg' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/gif' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='application/pdf' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='text/xml')
[F-LIB174] Attribute mimeCode must be a value from the codelist
/[]
cac:Attachment/cac:ExternalReference and not(cac:Attachment/cac:ExternalReference/cbc:URI != '')
[F-LIB096] When using ExternalReference, URI is mandatory
/[]
count(cbc:DocumentType) = 0
[F-LIB170] DocumentType element must be excluded
/[]
count(cbc:DocumentTypeCode) = 0
[F-LIB172] DocumentTypeCode element must be excluded
/[]
cac:Attachment and cbc:XPath
[F-LIB169] Use either Attachment or XPath
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and cac:Attachment/cac:ExternalReference
[F-LIB171] Use either EmbeddedDocumentBinaryObject or ExternalReference
/[]
cbc:UUID and not(string-length(string(cbc:UUID)) = 36)
[F-LIB173] Invalid UUID. Must be of this form '6E09886B-DC6E-439F-82D1-7CCAC7F4E3B1'
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and not(cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/tiff' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/png' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/jpeg' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/gif' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='application/pdf' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='text/xml')
[F-LIB174] Attribute mimeCode must be a value from the codelist
/[]
cac:Attachment/cac:ExternalReference and not(cac:Attachment/cac:ExternalReference/cbc:URI != '')
[F-LIB096] When using ExternalReference, URI is mandatory
/[]
count(cbc:DocumentType) = 0
[F-LIB170] DocumentType element must be excluded
/[]
count(cbc:DocumentTypeCode) = 0
[F-LIB172] DocumentTypeCode element must be excluded
/[]
cac:Attachment and cbc:XPath
[F-LIB169] Use either Attachment or XPath
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and cac:Attachment/cac:ExternalReference
[F-LIB171] Use either EmbeddedDocumentBinaryObject or ExternalReference
/[]
cbc:UUID and not(string-length(string(cbc:UUID)) = 36)
[F-LIB173] Invalid UUID. Must be of this form '6E09886B-DC6E-439F-82D1-7CCAC7F4E3B1'
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and not(cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/tiff' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/png' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/jpeg' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/gif' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='application/pdf' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='text/xml')
[F-LIB174] Attribute mimeCode must be a value from the codelist
/[]
cac:Attachment/cac:ExternalReference and not(cac:Attachment/cac:ExternalReference/cbc:URI != '')
[F-LIB096] When using ExternalReference, URI is mandatory
/[]
count(cbc:DocumentType) = 0
[F-LIB170] DocumentType element must be excluded
/[]
count(cbc:DocumentTypeCode) = 0
[F-LIB172] DocumentTypeCode element must be excluded
/[]
cac:Attachment and cbc:XPath
[F-LIB169] Use either Attachment or XPath
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and cac:Attachment/cac:ExternalReference
[F-LIB171] Use either EmbeddedDocumentBinaryObject or ExternalReference
/[]
cbc:UUID and not(string-length(string(cbc:UUID)) = 36)
[F-LIB173] Invalid UUID. Must be of this form '6E09886B-DC6E-439F-82D1-7CCAC7F4E3B1'
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and not(cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/tiff' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/png' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/jpeg' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/gif' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='application/pdf' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='text/xml')
[F-LIB174] Attribute mimeCode must be a value from the codelist
/[]
cac:Attachment/cac:ExternalReference and not(cac:Attachment/cac:ExternalReference/cbc:URI != '')
[F-LIB096] When using ExternalReference, URI is mandatory
/[]
count(cbc:DocumentType) = 0
[F-LIB170] DocumentType element must be excluded
/[]
count(cbc:DocumentTypeCode) = 0
[F-LIB172] DocumentTypeCode element must be excluded
/[]
cac:Attachment and cbc:XPath
[F-LIB169] Use either Attachment or XPath
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and cac:Attachment/cac:ExternalReference
[F-LIB171] Use either EmbeddedDocumentBinaryObject or ExternalReference
/[]
cbc:UUID and not(string-length(string(cbc:UUID)) = 36)
[F-LIB173] Invalid UUID. Must be of this form '6E09886B-DC6E-439F-82D1-7CCAC7F4E3B1'
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and not(cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/tiff' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/png' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/jpeg' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/gif' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='application/pdf' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='text/xml')
[F-LIB174] Attribute mimeCode must be a value from the codelist
/[]
cac:Attachment/cac:ExternalReference and not(cac:Attachment/cac:ExternalReference/cbc:URI != '')
[F-LIB096] When using ExternalReference, URI is mandatory
/[]
count(cbc:DocumentType) = 0
[F-LIB170] DocumentType element must be excluded
/[]
count(cbc:DocumentTypeCode) = 0
[F-LIB172] DocumentTypeCode element must be excluded
/[]
cac:Attachment and cbc:XPath
[F-LIB169] Use either Attachment or XPath
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and cac:Attachment/cac:ExternalReference
[F-LIB171] Use either EmbeddedDocumentBinaryObject or ExternalReference
/[]
cbc:UUID and not(string-length(string(cbc:UUID)) = 36)
[F-LIB173] Invalid UUID. Must be of this form '6E09886B-DC6E-439F-82D1-7CCAC7F4E3B1'
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and not(cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/tiff' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/png' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/jpeg' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/gif' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='application/pdf' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='text/xml')
[F-LIB174] Attribute mimeCode must be a value from the codelist
/[]
cac:Attachment/cac:ExternalReference and not(cac:Attachment/cac:ExternalReference/cbc:URI != '')
[F-LIB096] When using ExternalReference, URI is mandatory
/[]
count(cbc:DocumentType) = 0
[F-LIB170] DocumentType element must be excluded
/[]
count(cbc:DocumentTypeCode) = 0
[F-LIB172] DocumentTypeCode element must be excluded
/[]
cac:Attachment and cbc:XPath
[F-LIB169] Use either Attachment or XPath
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and cac:Attachment/cac:ExternalReference
[F-LIB171] Use either EmbeddedDocumentBinaryObject or ExternalReference
/[]
cbc:UUID and not(string-length(string(cbc:UUID)) = 36)
[F-LIB173] Invalid UUID. Must be of this form '6E09886B-DC6E-439F-82D1-7CCAC7F4E3B1'
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and not(cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/tiff' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/png' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/jpeg' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/gif' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='application/pdf' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='text/xml')
[F-LIB174] Attribute mimeCode must be a value from the codelist
/[]
cac:Attachment/cac:ExternalReference and not(cac:Attachment/cac:ExternalReference/cbc:URI != '')
[F-LIB096] When using ExternalReference, URI is mandatory
/[]
count(cbc:DocumentType) = 0
[F-LIB170] DocumentType element must be excluded
/[]
count(cbc:DocumentTypeCode) = 0
[F-LIB172] DocumentTypeCode element must be excluded
/[]
cac:Attachment and cbc:XPath
[F-LIB169] Use either Attachment or XPath
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and cac:Attachment/cac:ExternalReference
[F-LIB171] Use either EmbeddedDocumentBinaryObject or ExternalReference
/[]
cbc:UUID and not(string-length(string(cbc:UUID)) = 36)
[F-LIB173] Invalid UUID. Must be of this form '6E09886B-DC6E-439F-82D1-7CCAC7F4E3B1'
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and not(cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/tiff' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/png' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/jpeg' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/gif' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='application/pdf' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='text/xml')
[F-LIB174] Attribute mimeCode must be a value from the codelist
/[]
cac:Attachment/cac:ExternalReference and not(cac:Attachment/cac:ExternalReference/cbc:URI != '')
[F-LIB096] When using ExternalReference, URI is mandatory
/[]
count(cbc:DocumentType) = 0
[F-LIB170] DocumentType element must be excluded
/[]
count(cbc:DocumentTypeCode) = 0
[F-LIB172] DocumentTypeCode element must be excluded
/[]
cac:Attachment and cbc:XPath
[F-LIB169] Use either Attachment or XPath
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and cac:Attachment/cac:ExternalReference
[F-LIB171] Use either EmbeddedDocumentBinaryObject or ExternalReference
/[]
cbc:UUID and not(string-length(string(cbc:UUID)) = 36)
[F-LIB173] Invalid UUID. Must be of this form '6E09886B-DC6E-439F-82D1-7CCAC7F4E3B1'
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and not(cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/tiff' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/png' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/jpeg' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/gif' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='application/pdf' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='text/xml')
[F-LIB174] Attribute mimeCode must be a value from the codelist
/[]
cac:Attachment/cac:ExternalReference and not(cac:Attachment/cac:ExternalReference/cbc:URI != '')
[F-LIB096] When using ExternalReference, URI is mandatory
/[]
cbc:DocumentType or cbc:DocumentTypeCode
[F-LIB092] Use either DocumentType or DocumentTypeCode
/[]
cac:Attachment and cbc:XPath
[F-LIB093] Use either Attachment or XPath
/[]
cbc:DocumentType and cbc:DocumentTypeCode != 'ZZZ'
[F-LIB094] Use either DocumentType or DocumentTypeCode
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and cac:Attachment/cac:ExternalReference
[F-LIB095] Use either EmbeddedDocumentBinaryObject or ExternalReference
/[]
cbc:UUID and not(string-length(string(cbc:UUID)) = 36)
[F-LIB097] Invalid UUID. Must be of this form '6E09886B-DC6E-439F-82D1-7CCAC7F4E3B1'
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and not(cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/tiff' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/png' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/jpeg' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/gif' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='application/pdf' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='text/xml')
[F-LIB098] Attribute mimeCode must be a value from the codelist
/[]
cac:Attachment/cac:ExternalReference and not(cac:Attachment/cac:ExternalReference/cbc:URI != '')
[F-LIB279] When using ExternalReference, URI is mandatory
/[]
(cbc:DocumentTypeCode = 'PersonalSecure') and not (contains($PersonalSecure, concat(',',cbc:ID,',')))
[F-LIB335] When DocumentTypeCode equals 'PersonalSecure', the ID must be either '1', '2' or '3'.
/[]
normalize-space(cbc:ID) != ''
[F-INV027] Invalid Signature/ID. Must contain a value
/[]
count(cbc:MarkCareIndicator) = 0
[F-LIB166] MarkCareIndicator element must be excluded
/[]
count(cbc:MarkAttentionIndicator) = 0
[F-LIB167] MarkAttentionIndicator element must be excluded
/[]
count(cac:AgentParty) = 0
[F-LIB168] AgentParty class must be excluded
/[]
(not(cac:PartyIdentification) or cac:PartyIdentification/cbc:ID = '') and (not(cac:PartyName) or cac:PartyName/cbc:Name = '')
[F-LIB022] PartyName/Name is mandatory if PartyIdentification/ID is not found
/[]
cbc:EndpointID and not(contains($EndpointID_schemeID, concat(',',cbc:EndpointID/@schemeID,',')))
[F-LIB179] Invalid schemeID: '
'. Must be a value from the codelist: '
'
/[]
(cbc:EndpointID/@schemeID = 'DK:CVR') and (string-length(cbc:EndpointID) != 10 or substring(cbc:EndpointID, 1, 2) != 'DK')
[F-LIB180] schemeID = DK:CVR, EndpointID must be a valid CVR number (DK12345678)
/[]
(cbc:EndpointID/@schemeID = 'DK:CPR') and not(string-length(cbc:EndpointID) = 10)
[F-LIB215] schemeID = DK:CPR, EndpointID must be a valid CPR number (1234560000)
/[]
(cbc:EndpointID/@schemeID = 'GLN') and not(string-length(cbc:EndpointID) = 13)
[F-LIB181] schemeID = GLN, EndpointID must be a valid GLN number (1234567890123)
/[]
(cbc:EndpointID/@schemeID = 'EAN') and not(string-length(cbc:EndpointID) = 13)
[F-LIB216] schemeID = EAN, EndpointID must be a valid EAN number (1234567890123)
/[]
count(cac:PartyLegalEntity) > 1
[F-INV297] No more than one PartyLegalEntity class may be present
/[]
not(contains($PartyID_schemeID, concat(',',cbc:ID/@schemeID,',')))
[F-LIB183] Invalid schemeID: '
'. Must be a value from the codelist: '
'
/[]
(cbc:ID/@schemeID = 'DK:CVR') and (string-length(cbc:ID) != 10 or substring(cbc:ID, 1, 2) != 'DK')
[F-LIB184] schemeID = DK:CVR, ID must be a valid CVR number (DK12345678)
/[]
(cbc:ID/@schemeID = 'DK:CPR') and not(string-length(cbc:ID) = 10)
[F-LIB217] schemeID = DK:CPR, ID must be a valid CPR number (1234560000)
/[]
(cbc:ID/@schemeID = 'GLN') and not(string-length(cbc:ID) = 13)
[F-LIB185] schemeID = GLN, ID must be a valid GLN number (1234567890123)
/[]
(cbc:ID/@schemeID = 'EAN') and not(string-length(cbc:ID) = 13)
[F-LIB218] schemeID = EAN, ID must be a valid EAN number (1234567890123)
/[]
(cbc:ID/@schemeID = 'DK:P') and not(string-length(cbc:ID) = 10)
[F-LIB287] schemeID = DK:P, ID must be a valid P number (1234567890)
/[]
count(../cac:PartyName) > 1 and not(./cbc:Name/@languageID)
[W-LIB219] The attribute Name@languageID should be used when more than one PartyName class is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/cbc:Name/@languageID = self::*/cbc:Name/@languageID
[W-LIB220] Multilanguage error. Replicated PartyName classes with same Name@languageID attribute value
/[]
count(cbc:BlockName) = 0
[F-LIB210] BlockName element must be excluded
/[]
count(cbc:TimezoneOffset) = 0
[F-LIB211] TimezoneOffset element must be excluded
/[]
count(cac:LocationCoordinate) = 0
[F-LIB212] LocationCoordinate class must be excluded
/[]
normalize-space(cbc:AddressFormatCode) != ''
[F-LIB025] Invalid AddressFormatCode. Must contain a value
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listID = 'urn:oioubl:codelist:addresstypecode-1.1')
[F-LIB204] Invalid listID. Must be 'urn:oioubl:codelist:addresstypecode-1.1'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listAgencyID = '320')
[F-LIB205] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode = 'Home' or cbc:AddressTypeCode = 'Business' )
[F-LIB206] Invalid AddressTypeCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' or cbc:AddressFormatCode/@listID = 'UN/ECE 3477'
[F-LIB026] Invalid listID. Must be either 'urn:oioubl:codelist:addressformatcode-1.1' or 'UN/ECE 3477'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode/@listAgencyID = '320')
[F-LIB207] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode = 'StructuredDK' or cbc:AddressFormatCode = 'StructuredLax' or cbc:AddressFormatCode = 'StructuredID' or cbc:AddressFormatCode = 'StructuredRegion' or cbc:AddressFormatCode = 'Unstructured')
[F-LIB027] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode/@listAgencyID = '6')
[F-LIB208] Invalid listAgencyID. Must be '6'
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode = '1' or cbc:AddressFormatCode = '2' or cbc:AddressFormatCode = '3' or cbc:AddressFormatCode = '4' or cbc:AddressFormatCode = '5' or cbc:AddressFormatCode = '6' or cbc:AddressFormatCode = '7' or cbc:AddressFormatCode = '8' or cbc:AddressFormatCode = '9')
[F-LIB209] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cac:Country and not(cac:Country/cbc:IdentificationCode != '')
[F-LIB213] When Country is used the element Country/IdentificationCode must be filled out
/[]
(cbc:AddressFormatCode = 'Unstructured') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB031] An Unstructured address is only allowed to have AddressLine elements
/[]
(cbc:AddressFormatCode = 'StructuredDK') and cac:AddressLine
[F-LIB032] AddressLine elements not allowed for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and (not(cbc:PostalZone) or normalize-space(cbc:PostalZone) = '')
[F-LIB033] PostalZone is mandatory for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:StreetName) or normalize-space(cbc:StreetName) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB034] There should be either a StreetName or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:BuildingNumber) or normalize-space(cbc:BuildingNumber) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB035] There should be either a BuildingNumber or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredLax') and cac:AddressLine
[F-LIB036] AddressLine elements not allowed for a StructuredLax address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (not(cbc:ID) or cbc:ID = '')
[F-LIB037] ID is required for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB038] Only the ID is used for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and ((not(cac:Country/cbc:IdentificationCode) or cac:Country/cbc:IdentificationCode = '') and (not(cbc:Region) or cbc:Region = '') and (not(cbc:District) or cbc:District = ''))
[F-LIB039] Region or District or Country/IdentificationCode is required for a StructuredRegion address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0')
[F-LIB040] Only Region, District, and/or Country/IdentificationCode can be used for a StructuredRegion address type
/[]
cbc:ID and not(string-length(cbc:ID/@schemeID)>0)
[F-LIB028] When ID is used under Address the attribute schemeID is used to give an addressregister
/[]
cbc:ID and not(cbc:ID/@schemeID)
[F-LIB029] schemeID attribute must be present on an address ID
/[]
cac:Country/cbc:IdentificationCode and not(contains($CountryCode, concat(',',cac:Country/cbc:IdentificationCode,',')))
[F-LIB301] Invalid Country/IdentificationCode: '
'. Must be a value from the codelist
/[]
(not(cbc:ID) or cbc:ID = '') and (count(cac:Address) = 0)
[F-LIB221] If ID not specified, Address is mandatory
/[]
count(cbc:DurationMeasure) = 0
[F-LIB076] DurationMeasure element must be excluded
/[]
count(cbc:DescriptionCode) = 0
[F-LIB077] DescriptionCode element must be excluded
/[]
(cbc:StartTime) and (not(cbc:StartDate) or cbc:StartDate = '')
[F-LIB078] There must be a StartDate if you have a StartTime
/[]
(cbc:EndTime) and (not(cbc:EndDate) or cbc:EndDate = '')
[F-LIB079] There must be a EndDate if you have a EndTime
/[]
(cbc:StartDate and cbc:EndDate) and not(number(translate(cbc:EndDate,'-','')) > number(translate(cbc:StartDate,'-','')) or number(translate(cbc:EndDate,'-','')) = number(translate(cbc:StartDate,'-','')))
[F-LIB080] The EndDate must be greater or equal to the startdate
/[]
(cbc:StartTime and cbc:EndTime) and not(number(translate(cbc:EndTime,':','')) > number(translate(cbc:StartTime,':','')) or number(translate(cbc:EndTime,':','')) = number(translate(cbc:StartTime,':','')))
[F-LIB081] EndTime must be greater or equal to StartTime
/[]
count(../cbc:Description) > 1 and not(./@languageID)
[W-LIB222] The attribute languageID should be used when more than one Description element is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/@languageID = self::*/@languageID
[W-LIB223] Multilanguage error. Replicated Description elements with same languageID attribute value
/[]
count(cbc:BlockName) = 0
[F-LIB210] BlockName element must be excluded
/[]
count(cbc:TimezoneOffset) = 0
[F-LIB211] TimezoneOffset element must be excluded
/[]
count(cac:LocationCoordinate) = 0
[F-LIB212] LocationCoordinate class must be excluded
/[]
normalize-space(cbc:AddressFormatCode) != ''
[F-LIB025] Invalid AddressFormatCode. Must contain a value
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listID = 'urn:oioubl:codelist:addresstypecode-1.1')
[F-LIB204] Invalid listID. Must be 'urn:oioubl:codelist:addresstypecode-1.1'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listAgencyID = '320')
[F-LIB205] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode = 'Home' or cbc:AddressTypeCode = 'Business' )
[F-LIB206] Invalid AddressTypeCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' or cbc:AddressFormatCode/@listID = 'UN/ECE 3477'
[F-LIB026] Invalid listID. Must be either 'urn:oioubl:codelist:addressformatcode-1.1' or 'UN/ECE 3477'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode/@listAgencyID = '320')
[F-LIB207] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode = 'StructuredDK' or cbc:AddressFormatCode = 'StructuredLax' or cbc:AddressFormatCode = 'StructuredID' or cbc:AddressFormatCode = 'StructuredRegion' or cbc:AddressFormatCode = 'Unstructured')
[F-LIB027] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode/@listAgencyID = '6')
[F-LIB208] Invalid listAgencyID. Must be '6'
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode = '1' or cbc:AddressFormatCode = '2' or cbc:AddressFormatCode = '3' or cbc:AddressFormatCode = '4' or cbc:AddressFormatCode = '5' or cbc:AddressFormatCode = '6' or cbc:AddressFormatCode = '7' or cbc:AddressFormatCode = '8' or cbc:AddressFormatCode = '9')
[F-LIB209] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cac:Country and not(cac:Country/cbc:IdentificationCode != '')
[F-LIB213] When Country is used the element Country/IdentificationCode must be filled out
/[]
(cbc:AddressFormatCode = 'Unstructured') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB031] An Unstructured address is only allowed to have AddressLine elements
/[]
(cbc:AddressFormatCode = 'StructuredDK') and cac:AddressLine
[F-LIB032] AddressLine elements not allowed for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and (not(cbc:PostalZone) or normalize-space(cbc:PostalZone) = '')
[F-LIB033] PostalZone is mandatory for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:StreetName) or normalize-space(cbc:StreetName) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB034] There should be either a StreetName or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:BuildingNumber) or normalize-space(cbc:BuildingNumber) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB035] There should be either a BuildingNumber or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredLax') and cac:AddressLine
[F-LIB036] AddressLine elements not allowed for a StructuredLax address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (not(cbc:ID) or cbc:ID = '')
[F-LIB037] ID is required for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB038] Only the ID is used for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and ((not(cac:Country/cbc:IdentificationCode) or cac:Country/cbc:IdentificationCode = '') and (not(cbc:Region) or cbc:Region = '') and (not(cbc:District) or cbc:District = ''))
[F-LIB039] Region or District or Country/IdentificationCode is required for a StructuredRegion address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0')
[F-LIB040] Only Region, District, and/or Country/IdentificationCode can be used for a StructuredRegion address type
/[]
cbc:ID and not(string-length(cbc:ID/@schemeID)>0)
[F-LIB028] When ID is used under Address the attribute schemeID is used to give an addressregister
/[]
cbc:ID and not(cbc:ID/@schemeID)
[F-LIB029] schemeID attribute must be present on an address ID
/[]
cac:Country/cbc:IdentificationCode and not(contains($CountryCode, concat(',',cac:Country/cbc:IdentificationCode,',')))
[F-LIB301] Invalid Country/IdentificationCode: '
'. Must be a value from the codelist
/[]
count(cbc:TaxLevelCode) = 0
[F-LIB192] TaxLevelCode element must be excluded
/[]
normalize-space(cbc:CompanyID) != ''
[F-LIB193] Invalid CompanyID. Must contain a value
/[]
cbc:CompanyID/@schemeID = 'DK:SE' or cbc:CompanyID/@schemeID = 'ZZZ'
[F-LIB195] Invalid schemeID. Must be a valid scheme for PartyTaxScheme/CompanyID
/[]
(cbc:CompanyID/@schemeID = 'DK:SE') and (string-length(normalize-space(cbc:CompanyID)) != 10 or substring(cbc:CompanyID, 1, 2) != 'DK')
[F-LIB196] schemeID = DK:SE, CompanyID must be a valid SE number (DK12345678)
/[]
count(cac:JurisdictionRegionAddress/cbc:ID) = 0
[F-LIB041] ID element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:AddressTypeCode) = 0
[F-LIB042] AddressTypeCode element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Postbox) = 0
[F-LIB043] Postbox element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Floor) = 0
[F-LIB044] Floor element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Room) = 0
[F-LIB045] Room element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:StreetName) = 0
[F-LIB046] StreetName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:AdditionalStreetName) = 0
[F-LIB047] AdditionalStreetName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BlockName) = 0
[F-LIB048] BlockName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BuildingName) = 0
[F-LIB049] BuildingName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BuildingNumber) = 0
[F-LIB050] BuildingNumber element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:InhouseMail) = 0
[F-LIB051] InhouseMail element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Department) = 0
[F-LIB052] Department element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:MarkAttention) = 0
[F-LIB053] MarkAttention element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:MarkCare) = 0
[F-LIB054] MarkCare element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:PlotIdentification) = 0
[F-LIB055] PlotIdentification element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CitySubdivisionName) = 0
[F-LIB056] CitySubdivisionName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CityName) = 0
[F-LIB057] CityName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:PostalZone) = 0
[F-LIB058] PostalZone element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CountrySubentity) = 0
[F-LIB059] CountrySubentity element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CountrySubentityCode) = 0
[F-LIB060] CountrySubentityCode element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:TimezoneOffset) = 0
[F-LIB063] TimezoneOffset element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cac:AddressLine) = 0
[F-LIB234] AddressLine class must be excluded
/[]
count(cac:JurisdictionRegionAddress/cac:LocationCoordinate) = 0
[F-LIB064] LocationCoordinate class must be excluded
/[]
(cbc:ID = '63') and cbc:TaxTypeCode
[F-LIB067] TaxTypeCode is not allowed when TaxScheme/ID equals '63' (Moms)
/[]
normalize-space(cbc:ID) != ''
[F-LIB065] Invalid TaxScheme/ID. Must contain a value.
/[]
normalize-space(cbc:Name) != ''
[F-LIB066] Invalid Name. Must contain a value
/[]
not((cbc:ID = '63' or cbc:ID = 'VAT')) and not(contains($TaxType2, concat(',',cbc:TaxTypeCode,',')))
[F-LIB197] TaxTypeCode must be a value from the '
' codelist when TaxScheme/ID is different from '63' or 'VAT' (Moms)
/[]
cbc:ID/@schemeID = $TaxScheme_schemeID or cbc:ID/@schemeID = $TaxScheme2_schemeID or cbc:ID/@schemeID = $TaxScheme4_schemeID
[F-LIB070] Invalid schemeID. Must be '
' or '
' or '
'
/[]
(cbc:TaxTypeCode) and not((cbc:TaxTypeCode/@listID = $TaxType_listID) or (cbc:TaxTypeCode/@listID = $TaxType_listID2))
[F-LIB071] Invalid listID. Must be '
' or '
'
/[]
(cbc:ID = '63') and cbc:Name != 'Moms'
[F-LIB198] Name must equal 'Moms' when TaxScheme/ID equals '63' (Moms)
/[]
(cbc:ID != '63') and cbc:Name = 'Moms'
[F-LIB199] Name must correspond to the value of TaxScheme/ID
/[]
(cac:JurisdictionRegionAddress/cac:Country/cbc:IdentificationCode) and not(contains($CountryCode, concat(',',cac:JurisdictionRegionAddress/cac:Country/cbc:IdentificationCode,',')))
[F-LIB337] Invalid Country/IdentificationCode: '
'. Must be a value from the country codelist
/[]
(cac:JurisdictionRegionAddress) and cac:JurisdictionRegionAddress/cbc:AddressFormatCode != 'StructuredRegion'
[F-LIB233] The AddressFormatCode under JurisdictionRegionAddress must always equal 'StructuredRegion'
/[]
count(cac:CorporateRegistrationScheme) = 0
[F-LIB186] CorporateRegistrationScheme class must be excluded
/[]
normalize-space(cbc:CompanyID) != ''
[F-LIB187] Invalid CompanyID. Must contain a value
/[]
cbc:CompanyID/@schemeID = 'DK:CVR' or cbc:CompanyID/@schemeID = 'DK:CPR' or cbc:CompanyID/@schemeID = 'ZZZ'
[F-LIB189] Invalid schemeID. Must be a valid scheme for PartyLegalEntity/CompanyID
/[]
(cbc:CompanyID/@schemeID = 'DK:CVR') and (string-length(normalize-space(cbc:CompanyID)) != 10 or substring(cbc:CompanyID, 1, 2) != 'DK')
[F-LIB190] schemeID = DK:CVR, CompanyID must be a valid CVR number (DK12345678)
/[]
(cbc:CompanyID/@schemeID = 'DK:CPR') and not(string-length(cbc:CompanyID) = 10)
[F-LIB191] schemeID = DK:CPR, CompanyID must be a valid CPR number (1234560000)
/[]
(not(cbc:ID) or cbc:ID = '') and (not(cbc:Name) or cbc:Name = '') and (not(cbc:Telephone) or cbc:Telephone = '') and (not(cbc:Telefax) or cbc:Telefax = '') and (not(cbc:ElectronicMail) or cbc:ElectronicMail = '') and (not(cbc:Note) or cbc:Note = '') and not(cac:OtherCommunication)
[F-LIB235] At least one field in the Contact class should be specified
/[]
cac:OtherCommunication/cbc:ChannelCode and cac:OtherCommunication/cbc:Channel
[F-LIB236] Use either ChannelCode or Channel
/[]
cac:OtherCommunication and not(normalize-space(cac:OtherCommunication/cbc:Value) != '')
[F-LIB237] Invalid Value. Must contain a value
/[]
(not(cbc:FamilyName) or cbc:FamilyName = '') and (not(cbc:FirstName) or cbc:FirstName = '')
[F-LIB024] There must be a FirstName if the FamilyName is not present
/[]
cbc:EmbeddedDocumentBinaryObject and cac:ExternalReference
[F-LIB284] Use either EmbeddedDocumentBinaryObject or ExternalReference
/[]
cbc:EmbeddedDocumentBinaryObject and not(cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/tiff' or cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/png' or cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/jpeg' or cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/gif' or cbc:EmbeddedDocumentBinaryObject/@mimeCode='application/pdf' or cbc:EmbeddedDocumentBinaryObject/@mimeCode='text/xml')
[F-LIB285] Attribute mimeCode must be a value from the codelist
/[]
cac:ExternalReference and not(cac:ExternalReference/cbc:URI != '')
[F-LIB286] When using ExternalReference, URI is mandatory
/[]
cbc:DocumentType or cbc:DocumentTypeCode
[F-LIB092] Use either DocumentType or DocumentTypeCode
/[]
cac:Attachment and cbc:XPath
[F-LIB093] Use either Attachment or XPath
/[]
cbc:DocumentType and cbc:DocumentTypeCode != 'ZZZ'
[F-LIB094] Use either DocumentType or DocumentTypeCode
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and cac:Attachment/cac:ExternalReference
[F-LIB095] Use either EmbeddedDocumentBinaryObject or ExternalReference
/[]
cbc:UUID and not(string-length(string(cbc:UUID)) = 36)
[F-LIB097] Invalid UUID. Must be of this form '6E09886B-DC6E-439F-82D1-7CCAC7F4E3B1'
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and not(cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/tiff' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/png' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/jpeg' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/gif' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='application/pdf' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='text/xml')
[F-LIB098] Attribute mimeCode must be a value from the codelist
/[]
cac:Attachment/cac:ExternalReference and not(cac:Attachment/cac:ExternalReference/cbc:URI != '')
[F-LIB279] When using ExternalReference, URI is mandatory
/[]
(cbc:DocumentTypeCode = 'PersonalSecure') and not (contains($PersonalSecure, concat(',',cbc:ID,',')))
[F-LIB335] When DocumentTypeCode equals 'PersonalSecure', the ID must be either '1', '2' or '3'.
/[]
cbc:EmbeddedDocumentBinaryObject and cac:ExternalReference
[F-LIB284] Use either EmbeddedDocumentBinaryObject or ExternalReference
/[]
cbc:EmbeddedDocumentBinaryObject and not(cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/tiff' or cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/png' or cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/jpeg' or cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/gif' or cbc:EmbeddedDocumentBinaryObject/@mimeCode='application/pdf' or cbc:EmbeddedDocumentBinaryObject/@mimeCode='text/xml')
[F-LIB285] Attribute mimeCode must be a value from the codelist
/[]
cac:ExternalReference and not(cac:ExternalReference/cbc:URI != '')
[F-LIB286] When using ExternalReference, URI is mandatory
/[]
cbc:DocumentType or cbc:DocumentTypeCode
[F-LIB092] Use either DocumentType or DocumentTypeCode
/[]
cac:Attachment and cbc:XPath
[F-LIB093] Use either Attachment or XPath
/[]
cbc:DocumentType and cbc:DocumentTypeCode != 'ZZZ'
[F-LIB094] Use either DocumentType or DocumentTypeCode
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and cac:Attachment/cac:ExternalReference
[F-LIB095] Use either EmbeddedDocumentBinaryObject or ExternalReference
/[]
cbc:UUID and not(string-length(string(cbc:UUID)) = 36)
[F-LIB097] Invalid UUID. Must be of this form '6E09886B-DC6E-439F-82D1-7CCAC7F4E3B1'
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and not(cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/tiff' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/png' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/jpeg' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/gif' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='application/pdf' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='text/xml')
[F-LIB098] Attribute mimeCode must be a value from the codelist
/[]
cac:Attachment/cac:ExternalReference and not(cac:Attachment/cac:ExternalReference/cbc:URI != '')
[F-LIB279] When using ExternalReference, URI is mandatory
/[]
(cbc:DocumentTypeCode = 'PersonalSecure') and not (contains($PersonalSecure, concat(',',cbc:ID,',')))
[F-LIB335] When DocumentTypeCode equals 'PersonalSecure', the ID must be either '1', '2' or '3'.
/[]
count(cbc:DataSendingCapability) = 0
[F-INV029] DataSendingCapability element must be excluded
/[]
count(cac:Party) = 1
[F-INV030] Party class must be present
/[]
count(cbc:MarkCareIndicator) = 0
[F-LIB166] MarkCareIndicator element must be excluded
/[]
count(cbc:MarkAttentionIndicator) = 0
[F-LIB167] MarkAttentionIndicator element must be excluded
/[]
count(cac:AgentParty) = 0
[F-LIB168] AgentParty class must be excluded
/[]
normalize-space(cbc:EndpointID) != ''
[F-INV031] Invalid EndpointID. Must contain a value
/[]
count(cac:PartyLegalEntity) = 1
[F-INV034] One PartyLegalEntity class must be present
/[]
(not(cac:PartyIdentification) or cac:PartyIdentification/cbc:ID = '') and (not(cac:PartyName) or cac:PartyName/cbc:Name = '')
[F-LIB022] PartyName/Name is mandatory if PartyIdentification/ID is not found
/[]
cbc:EndpointID and not(contains($EndpointID_schemeID, concat(',',cbc:EndpointID/@schemeID,',')))
[F-LIB179] Invalid schemeID: '
'. Must be a value from the codelist: '
'
/[]
(cbc:EndpointID/@schemeID = 'DK:CVR') and (string-length(cbc:EndpointID) != 10 or substring(cbc:EndpointID, 1, 2) != 'DK')
[F-LIB180] schemeID = DK:CVR, EndpointID must be a valid CVR number (DK12345678)
/[]
(cbc:EndpointID/@schemeID = 'DK:CPR') and not(string-length(cbc:EndpointID) = 10)
[F-LIB215] schemeID = DK:CPR, EndpointID must be a valid CPR number (1234560000)
/[]
(cbc:EndpointID/@schemeID = 'GLN') and not(string-length(cbc:EndpointID) = 13)
[F-LIB181] schemeID = GLN, EndpointID must be a valid GLN number (1234567890123)
/[]
(cbc:EndpointID/@schemeID = 'EAN') and not(string-length(cbc:EndpointID) = 13)
[F-LIB216] schemeID = EAN, EndpointID must be a valid EAN number (1234567890123)
/[]
not(contains($PartyID_schemeID, concat(',',cbc:ID/@schemeID,',')))
[F-LIB183] Invalid schemeID: '
'. Must be a value from the codelist: '
'
/[]
(cbc:ID/@schemeID = 'DK:CVR') and (string-length(cbc:ID) != 10 or substring(cbc:ID, 1, 2) != 'DK')
[F-LIB184] schemeID = DK:CVR, ID must be a valid CVR number (DK12345678)
/[]
(cbc:ID/@schemeID = 'DK:CPR') and not(string-length(cbc:ID) = 10)
[F-LIB217] schemeID = DK:CPR, ID must be a valid CPR number (1234560000)
/[]
(cbc:ID/@schemeID = 'GLN') and not(string-length(cbc:ID) = 13)
[F-LIB185] schemeID = GLN, ID must be a valid GLN number (1234567890123)
/[]
(cbc:ID/@schemeID = 'EAN') and not(string-length(cbc:ID) = 13)
[F-LIB218] schemeID = EAN, ID must be a valid EAN number (1234567890123)
/[]
(cbc:ID/@schemeID = 'DK:P') and not(string-length(cbc:ID) = 10)
[F-LIB287] schemeID = DK:P, ID must be a valid P number (1234567890)
/[]
count(../cac:PartyName) > 1 and not(./cbc:Name/@languageID)
[W-LIB219] The attribute Name@languageID should be used when more than one PartyName class is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/cbc:Name/@languageID = self::*/cbc:Name/@languageID
[W-LIB220] Multilanguage error. Replicated PartyName classes with same Name@languageID attribute value
/[]
count(cbc:BlockName) = 0
[F-LIB210] BlockName element must be excluded
/[]
count(cbc:TimezoneOffset) = 0
[F-LIB211] TimezoneOffset element must be excluded
/[]
count(cac:LocationCoordinate) = 0
[F-LIB212] LocationCoordinate class must be excluded
/[]
normalize-space(cbc:AddressFormatCode) != ''
[F-LIB025] Invalid AddressFormatCode. Must contain a value
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listID = 'urn:oioubl:codelist:addresstypecode-1.1')
[F-LIB204] Invalid listID. Must be 'urn:oioubl:codelist:addresstypecode-1.1'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listAgencyID = '320')
[F-LIB205] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode = 'Home' or cbc:AddressTypeCode = 'Business' )
[F-LIB206] Invalid AddressTypeCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' or cbc:AddressFormatCode/@listID = 'UN/ECE 3477'
[F-LIB026] Invalid listID. Must be either 'urn:oioubl:codelist:addressformatcode-1.1' or 'UN/ECE 3477'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode/@listAgencyID = '320')
[F-LIB207] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode = 'StructuredDK' or cbc:AddressFormatCode = 'StructuredLax' or cbc:AddressFormatCode = 'StructuredID' or cbc:AddressFormatCode = 'StructuredRegion' or cbc:AddressFormatCode = 'Unstructured')
[F-LIB027] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode/@listAgencyID = '6')
[F-LIB208] Invalid listAgencyID. Must be '6'
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode = '1' or cbc:AddressFormatCode = '2' or cbc:AddressFormatCode = '3' or cbc:AddressFormatCode = '4' or cbc:AddressFormatCode = '5' or cbc:AddressFormatCode = '6' or cbc:AddressFormatCode = '7' or cbc:AddressFormatCode = '8' or cbc:AddressFormatCode = '9')
[F-LIB209] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cac:Country and not(cac:Country/cbc:IdentificationCode != '')
[F-LIB213] When Country is used the element Country/IdentificationCode must be filled out
/[]
(cbc:AddressFormatCode = 'Unstructured') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB031] An Unstructured address is only allowed to have AddressLine elements
/[]
(cbc:AddressFormatCode = 'StructuredDK') and cac:AddressLine
[F-LIB032] AddressLine elements not allowed for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and (not(cbc:PostalZone) or normalize-space(cbc:PostalZone) = '')
[F-LIB033] PostalZone is mandatory for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:StreetName) or normalize-space(cbc:StreetName) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB034] There should be either a StreetName or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:BuildingNumber) or normalize-space(cbc:BuildingNumber) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB035] There should be either a BuildingNumber or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredLax') and cac:AddressLine
[F-LIB036] AddressLine elements not allowed for a StructuredLax address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (not(cbc:ID) or cbc:ID = '')
[F-LIB037] ID is required for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB038] Only the ID is used for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and ((not(cac:Country/cbc:IdentificationCode) or cac:Country/cbc:IdentificationCode = '') and (not(cbc:Region) or cbc:Region = '') and (not(cbc:District) or cbc:District = ''))
[F-LIB039] Region or District or Country/IdentificationCode is required for a StructuredRegion address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0')
[F-LIB040] Only Region, District, and/or Country/IdentificationCode can be used for a StructuredRegion address type
/[]
cbc:ID and not(string-length(cbc:ID/@schemeID)>0)
[F-LIB028] When ID is used under Address the attribute schemeID is used to give an addressregister
/[]
cbc:ID and not(cbc:ID/@schemeID)
[F-LIB029] schemeID attribute must be present on an address ID
/[]
cac:Country/cbc:IdentificationCode and not(contains($CountryCode, concat(',',cac:Country/cbc:IdentificationCode,',')))
[F-LIB301] Invalid Country/IdentificationCode: '
'. Must be a value from the codelist
/[]
(not(cbc:ID) or cbc:ID = '') and (count(cac:Address) = 0)
[F-LIB221] If ID not specified, Address is mandatory
/[]
count(cbc:DurationMeasure) = 0
[F-LIB076] DurationMeasure element must be excluded
/[]
count(cbc:DescriptionCode) = 0
[F-LIB077] DescriptionCode element must be excluded
/[]
(cbc:StartTime) and (not(cbc:StartDate) or cbc:StartDate = '')
[F-LIB078] There must be a StartDate if you have a StartTime
/[]
(cbc:EndTime) and (not(cbc:EndDate) or cbc:EndDate = '')
[F-LIB079] There must be a EndDate if you have a EndTime
/[]
(cbc:StartDate and cbc:EndDate) and not(number(translate(cbc:EndDate,'-','')) > number(translate(cbc:StartDate,'-','')) or number(translate(cbc:EndDate,'-','')) = number(translate(cbc:StartDate,'-','')))
[F-LIB080] The EndDate must be greater or equal to the startdate
/[]
(cbc:StartTime and cbc:EndTime) and not(number(translate(cbc:EndTime,':','')) > number(translate(cbc:StartTime,':','')) or number(translate(cbc:EndTime,':','')) = number(translate(cbc:StartTime,':','')))
[F-LIB081] EndTime must be greater or equal to StartTime
/[]
count(../cbc:Description) > 1 and not(./@languageID)
[W-LIB222] The attribute languageID should be used when more than one Description element is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/@languageID = self::*/@languageID
[W-LIB223] Multilanguage error. Replicated Description elements with same languageID attribute value
/[]
count(cbc:BlockName) = 0
[F-LIB210] BlockName element must be excluded
/[]
count(cbc:TimezoneOffset) = 0
[F-LIB211] TimezoneOffset element must be excluded
/[]
count(cac:LocationCoordinate) = 0
[F-LIB212] LocationCoordinate class must be excluded
/[]
normalize-space(cbc:AddressFormatCode) != ''
[F-LIB025] Invalid AddressFormatCode. Must contain a value
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listID = 'urn:oioubl:codelist:addresstypecode-1.1')
[F-LIB204] Invalid listID. Must be 'urn:oioubl:codelist:addresstypecode-1.1'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listAgencyID = '320')
[F-LIB205] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode = 'Home' or cbc:AddressTypeCode = 'Business' )
[F-LIB206] Invalid AddressTypeCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' or cbc:AddressFormatCode/@listID = 'UN/ECE 3477'
[F-LIB026] Invalid listID. Must be either 'urn:oioubl:codelist:addressformatcode-1.1' or 'UN/ECE 3477'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode/@listAgencyID = '320')
[F-LIB207] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode = 'StructuredDK' or cbc:AddressFormatCode = 'StructuredLax' or cbc:AddressFormatCode = 'StructuredID' or cbc:AddressFormatCode = 'StructuredRegion' or cbc:AddressFormatCode = 'Unstructured')
[F-LIB027] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode/@listAgencyID = '6')
[F-LIB208] Invalid listAgencyID. Must be '6'
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode = '1' or cbc:AddressFormatCode = '2' or cbc:AddressFormatCode = '3' or cbc:AddressFormatCode = '4' or cbc:AddressFormatCode = '5' or cbc:AddressFormatCode = '6' or cbc:AddressFormatCode = '7' or cbc:AddressFormatCode = '8' or cbc:AddressFormatCode = '9')
[F-LIB209] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cac:Country and not(cac:Country/cbc:IdentificationCode != '')
[F-LIB213] When Country is used the element Country/IdentificationCode must be filled out
/[]
(cbc:AddressFormatCode = 'Unstructured') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB031] An Unstructured address is only allowed to have AddressLine elements
/[]
(cbc:AddressFormatCode = 'StructuredDK') and cac:AddressLine
[F-LIB032] AddressLine elements not allowed for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and (not(cbc:PostalZone) or normalize-space(cbc:PostalZone) = '')
[F-LIB033] PostalZone is mandatory for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:StreetName) or normalize-space(cbc:StreetName) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB034] There should be either a StreetName or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:BuildingNumber) or normalize-space(cbc:BuildingNumber) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB035] There should be either a BuildingNumber or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredLax') and cac:AddressLine
[F-LIB036] AddressLine elements not allowed for a StructuredLax address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (not(cbc:ID) or cbc:ID = '')
[F-LIB037] ID is required for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB038] Only the ID is used for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and ((not(cac:Country/cbc:IdentificationCode) or cac:Country/cbc:IdentificationCode = '') and (not(cbc:Region) or cbc:Region = '') and (not(cbc:District) or cbc:District = ''))
[F-LIB039] Region or District or Country/IdentificationCode is required for a StructuredRegion address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0')
[F-LIB040] Only Region, District, and/or Country/IdentificationCode can be used for a StructuredRegion address type
/[]
cbc:ID and not(string-length(cbc:ID/@schemeID)>0)
[F-LIB028] When ID is used under Address the attribute schemeID is used to give an addressregister
/[]
cbc:ID and not(cbc:ID/@schemeID)
[F-LIB029] schemeID attribute must be present on an address ID
/[]
cac:Country/cbc:IdentificationCode and not(contains($CountryCode, concat(',',cac:Country/cbc:IdentificationCode,',')))
[F-LIB301] Invalid Country/IdentificationCode: '
'. Must be a value from the codelist
/[]
count(cbc:TaxLevelCode) = 0
[F-LIB192] TaxLevelCode element must be excluded
/[]
normalize-space(cbc:CompanyID) != ''
[F-LIB193] Invalid CompanyID. Must contain a value
/[]
cbc:CompanyID/@schemeID = 'DK:SE' or cbc:CompanyID/@schemeID = 'ZZZ'
[F-LIB195] Invalid schemeID. Must be a valid scheme for PartyTaxScheme/CompanyID
/[]
(cbc:CompanyID/@schemeID = 'DK:SE') and (string-length(normalize-space(cbc:CompanyID)) != 10 or substring(cbc:CompanyID, 1, 2) != 'DK')
[F-LIB196] schemeID = DK:SE, CompanyID must be a valid SE number (DK12345678)
/[]
count(cac:JurisdictionRegionAddress/cbc:ID) = 0
[F-LIB041] ID element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:AddressTypeCode) = 0
[F-LIB042] AddressTypeCode element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Postbox) = 0
[F-LIB043] Postbox element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Floor) = 0
[F-LIB044] Floor element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Room) = 0
[F-LIB045] Room element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:StreetName) = 0
[F-LIB046] StreetName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:AdditionalStreetName) = 0
[F-LIB047] AdditionalStreetName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BlockName) = 0
[F-LIB048] BlockName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BuildingName) = 0
[F-LIB049] BuildingName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BuildingNumber) = 0
[F-LIB050] BuildingNumber element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:InhouseMail) = 0
[F-LIB051] InhouseMail element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Department) = 0
[F-LIB052] Department element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:MarkAttention) = 0
[F-LIB053] MarkAttention element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:MarkCare) = 0
[F-LIB054] MarkCare element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:PlotIdentification) = 0
[F-LIB055] PlotIdentification element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CitySubdivisionName) = 0
[F-LIB056] CitySubdivisionName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CityName) = 0
[F-LIB057] CityName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:PostalZone) = 0
[F-LIB058] PostalZone element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CountrySubentity) = 0
[F-LIB059] CountrySubentity element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CountrySubentityCode) = 0
[F-LIB060] CountrySubentityCode element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:TimezoneOffset) = 0
[F-LIB063] TimezoneOffset element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cac:AddressLine) = 0
[F-LIB234] AddressLine class must be excluded
/[]
count(cac:JurisdictionRegionAddress/cac:LocationCoordinate) = 0
[F-LIB064] LocationCoordinate class must be excluded
/[]
(cbc:ID = '63') and cbc:TaxTypeCode
[F-LIB067] TaxTypeCode is not allowed when TaxScheme/ID equals '63' (Moms)
/[]
normalize-space(cbc:ID) != ''
[F-LIB065] Invalid TaxScheme/ID. Must contain a value.
/[]
normalize-space(cbc:Name) != ''
[F-LIB066] Invalid Name. Must contain a value
/[]
not((cbc:ID = '63' or cbc:ID = 'VAT')) and not(contains($TaxType2, concat(',',cbc:TaxTypeCode,',')))
[F-LIB197] TaxTypeCode must be a value from the '
' codelist when TaxScheme/ID is different from '63' or 'VAT' (Moms)
/[]
cbc:ID/@schemeID = $TaxScheme_schemeID or cbc:ID/@schemeID = $TaxScheme2_schemeID or cbc:ID/@schemeID = $TaxScheme4_schemeID
[F-LIB070] Invalid schemeID. Must be '
' or '
' or '
'
/[]
(cbc:TaxTypeCode) and not((cbc:TaxTypeCode/@listID = $TaxType_listID) or (cbc:TaxTypeCode/@listID = $TaxType_listID2))
[F-LIB071] Invalid listID. Must be '
' or '
'
/[]
(cbc:ID = '63') and cbc:Name != 'Moms'
[F-LIB198] Name must equal 'Moms' when TaxScheme/ID equals '63' (Moms)
/[]
(cbc:ID != '63') and cbc:Name = 'Moms'
[F-LIB199] Name must correspond to the value of TaxScheme/ID
/[]
(cac:JurisdictionRegionAddress/cac:Country/cbc:IdentificationCode) and not(contains($CountryCode, concat(',',cac:JurisdictionRegionAddress/cac:Country/cbc:IdentificationCode,',')))
[F-LIB337] Invalid Country/IdentificationCode: '
'. Must be a value from the country codelist
/[]
(cac:JurisdictionRegionAddress) and cac:JurisdictionRegionAddress/cbc:AddressFormatCode != 'StructuredRegion'
[F-LIB233] The AddressFormatCode under JurisdictionRegionAddress must always equal 'StructuredRegion'
/[]
count(cac:CorporateRegistrationScheme) = 0
[F-LIB186] CorporateRegistrationScheme class must be excluded
/[]
normalize-space(cbc:CompanyID) != ''
[F-LIB187] Invalid CompanyID. Must contain a value
/[]
cbc:CompanyID/@schemeID = 'DK:CVR' or cbc:CompanyID/@schemeID = 'DK:CPR' or cbc:CompanyID/@schemeID = 'ZZZ'
[F-LIB189] Invalid schemeID. Must be a valid scheme for PartyLegalEntity/CompanyID
/[]
(cbc:CompanyID/@schemeID = 'DK:CVR') and (string-length(normalize-space(cbc:CompanyID)) != 10 or substring(cbc:CompanyID, 1, 2) != 'DK')
[F-LIB190] schemeID = DK:CVR, CompanyID must be a valid CVR number (DK12345678)
/[]
(cbc:CompanyID/@schemeID = 'DK:CPR') and not(string-length(cbc:CompanyID) = 10)
[F-LIB191] schemeID = DK:CPR, CompanyID must be a valid CPR number (1234560000)
/[]
(not(cbc:ID) or cbc:ID = '') and (not(cbc:Name) or cbc:Name = '') and (not(cbc:Telephone) or cbc:Telephone = '') and (not(cbc:Telefax) or cbc:Telefax = '') and (not(cbc:ElectronicMail) or cbc:ElectronicMail = '') and (not(cbc:Note) or cbc:Note = '') and not(cac:OtherCommunication)
[F-LIB235] At least one field in the Contact class should be specified
/[]
cac:OtherCommunication/cbc:ChannelCode and cac:OtherCommunication/cbc:Channel
[F-LIB236] Use either ChannelCode or Channel
/[]
cac:OtherCommunication and not(normalize-space(cac:OtherCommunication/cbc:Value) != '')
[F-LIB237] Invalid Value. Must contain a value
/[]
(not(cbc:FamilyName) or cbc:FamilyName = '') and (not(cbc:FirstName) or cbc:FirstName = '')
[F-LIB024] There must be a FirstName if the FamilyName is not present
/[]
(not(cbc:ID) or cbc:ID = '') and (not(cbc:Name) or cbc:Name = '') and (not(cbc:Telephone) or cbc:Telephone = '') and (not(cbc:Telefax) or cbc:Telefax = '') and (not(cbc:ElectronicMail) or cbc:ElectronicMail = '') and (not(cbc:Note) or cbc:Note = '') and not(cac:OtherCommunication)
[F-LIB235] At least one field in the Contact class should be specified
/[]
cac:OtherCommunication/cbc:ChannelCode and cac:OtherCommunication/cbc:Channel
[F-LIB236] Use either ChannelCode or Channel
/[]
cac:OtherCommunication and not(normalize-space(cac:OtherCommunication/cbc:Value) != '')
[F-LIB237] Invalid Value. Must contain a value
/[]
(not(cbc:ID) or cbc:ID = '') and (not(cbc:Name) or cbc:Name = '') and (not(cbc:Telephone) or cbc:Telephone = '') and (not(cbc:Telefax) or cbc:Telefax = '') and (not(cbc:ElectronicMail) or cbc:ElectronicMail = '') and (not(cbc:Note) or cbc:Note = '') and not(cac:OtherCommunication)
[F-LIB235] At least one field in the Contact class should be specified
/[]
cac:OtherCommunication/cbc:ChannelCode and cac:OtherCommunication/cbc:Channel
[F-LIB236] Use either ChannelCode or Channel
/[]
cac:OtherCommunication and not(normalize-space(cac:OtherCommunication/cbc:Value) != '')
[F-LIB237] Invalid Value. Must contain a value
/[]
(not(cbc:ID) or cbc:ID = '') and (not(cbc:Name) or cbc:Name = '') and (not(cbc:Telephone) or cbc:Telephone = '') and (not(cbc:Telefax) or cbc:Telefax = '') and (not(cbc:ElectronicMail) or cbc:ElectronicMail = '') and (not(cbc:Note) or cbc:Note = '') and not(cac:OtherCommunication)
[F-LIB235] At least one field in the Contact class should be specified
/[]
cac:OtherCommunication/cbc:ChannelCode and cac:OtherCommunication/cbc:Channel
[F-LIB236] Use either ChannelCode or Channel
/[]
cac:OtherCommunication and not(normalize-space(cac:OtherCommunication/cbc:Value) != '')
[F-LIB237] Invalid Value. Must contain a value
/[]
count(cac:Party) = 1
[F-INV043] One Party class must be present
/[]
count(cbc:MarkCareIndicator) = 0
[F-LIB166] MarkCareIndicator element must be excluded
/[]
count(cbc:MarkAttentionIndicator) = 0
[F-LIB167] MarkAttentionIndicator element must be excluded
/[]
count(cac:AgentParty) = 0
[F-LIB168] AgentParty class must be excluded
/[]
normalize-space(cbc:EndpointID) != ''
[F-INV044] Invalid EndpointID. Must contain a value
/[]
count(cac:Contact) = 1
[F-INV046] One Contact class must be present
/[]
(not(cac:PartyIdentification) or cac:PartyIdentification/cbc:ID = '') and (not(cac:PartyName) or cac:PartyName/cbc:Name = '')
[F-LIB022] PartyName/Name is mandatory if PartyIdentification/ID is not found
/[]
cbc:EndpointID and not(contains($EndpointID_schemeID, concat(',',cbc:EndpointID/@schemeID,',')))
[F-LIB179] Invalid schemeID: '
'. Must be a value from the codelist: '
'
/[]
(cbc:EndpointID/@schemeID = 'DK:CVR') and (string-length(cbc:EndpointID) != 10 or substring(cbc:EndpointID, 1, 2) != 'DK')
[F-LIB180] schemeID = DK:CVR, EndpointID must be a valid CVR number (DK12345678)
/[]
(cbc:EndpointID/@schemeID = 'DK:CPR') and not(string-length(cbc:EndpointID) = 10)
[F-LIB215] schemeID = DK:CPR, EndpointID must be a valid CPR number (1234560000)
/[]
(cbc:EndpointID/@schemeID = 'GLN') and not(string-length(cbc:EndpointID) = 13)
[F-LIB181] schemeID = GLN, EndpointID must be a valid GLN number (1234567890123)
/[]
(cbc:EndpointID/@schemeID = 'EAN') and not(string-length(cbc:EndpointID) = 13)
[F-LIB216] schemeID = EAN, EndpointID must be a valid EAN number (1234567890123)
/[]
count(cac:PartyLegalEntity) > 1
[F-INV045] No more than one PartyLegalEntity class may be present
/[]
not(contains($PartyID_schemeID, concat(',',cbc:ID/@schemeID,',')))
[F-LIB183] Invalid schemeID: '
'. Must be a value from the codelist: '
'
/[]
(cbc:ID/@schemeID = 'DK:CVR') and (string-length(cbc:ID) != 10 or substring(cbc:ID, 1, 2) != 'DK')
[F-LIB184] schemeID = DK:CVR, ID must be a valid CVR number (DK12345678)
/[]
(cbc:ID/@schemeID = 'DK:CPR') and not(string-length(cbc:ID) = 10)
[F-LIB217] schemeID = DK:CPR, ID must be a valid CPR number (1234560000)
/[]
(cbc:ID/@schemeID = 'GLN') and not(string-length(cbc:ID) = 13)
[F-LIB185] schemeID = GLN, ID must be a valid GLN number (1234567890123)
/[]
(cbc:ID/@schemeID = 'EAN') and not(string-length(cbc:ID) = 13)
[F-LIB218] schemeID = EAN, ID must be a valid EAN number (1234567890123)
/[]
(cbc:ID/@schemeID = 'DK:P') and not(string-length(cbc:ID) = 10)
[F-LIB287] schemeID = DK:P, ID must be a valid P number (1234567890)
/[]
count(../cac:PartyName) > 1 and not(./cbc:Name/@languageID)
[W-LIB219] The attribute Name@languageID should be used when more than one PartyName class is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/cbc:Name/@languageID = self::*/cbc:Name/@languageID
[W-LIB220] Multilanguage error. Replicated PartyName classes with same Name@languageID attribute value
/[]
count(cbc:BlockName) = 0
[F-LIB210] BlockName element must be excluded
/[]
count(cbc:TimezoneOffset) = 0
[F-LIB211] TimezoneOffset element must be excluded
/[]
count(cac:LocationCoordinate) = 0
[F-LIB212] LocationCoordinate class must be excluded
/[]
normalize-space(cbc:AddressFormatCode) != ''
[F-LIB025] Invalid AddressFormatCode. Must contain a value
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listID = 'urn:oioubl:codelist:addresstypecode-1.1')
[F-LIB204] Invalid listID. Must be 'urn:oioubl:codelist:addresstypecode-1.1'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listAgencyID = '320')
[F-LIB205] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode = 'Home' or cbc:AddressTypeCode = 'Business' )
[F-LIB206] Invalid AddressTypeCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' or cbc:AddressFormatCode/@listID = 'UN/ECE 3477'
[F-LIB026] Invalid listID. Must be either 'urn:oioubl:codelist:addressformatcode-1.1' or 'UN/ECE 3477'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode/@listAgencyID = '320')
[F-LIB207] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode = 'StructuredDK' or cbc:AddressFormatCode = 'StructuredLax' or cbc:AddressFormatCode = 'StructuredID' or cbc:AddressFormatCode = 'StructuredRegion' or cbc:AddressFormatCode = 'Unstructured')
[F-LIB027] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode/@listAgencyID = '6')
[F-LIB208] Invalid listAgencyID. Must be '6'
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode = '1' or cbc:AddressFormatCode = '2' or cbc:AddressFormatCode = '3' or cbc:AddressFormatCode = '4' or cbc:AddressFormatCode = '5' or cbc:AddressFormatCode = '6' or cbc:AddressFormatCode = '7' or cbc:AddressFormatCode = '8' or cbc:AddressFormatCode = '9')
[F-LIB209] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cac:Country and not(cac:Country/cbc:IdentificationCode != '')
[F-LIB213] When Country is used the element Country/IdentificationCode must be filled out
/[]
(cbc:AddressFormatCode = 'Unstructured') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB031] An Unstructured address is only allowed to have AddressLine elements
/[]
(cbc:AddressFormatCode = 'StructuredDK') and cac:AddressLine
[F-LIB032] AddressLine elements not allowed for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and (not(cbc:PostalZone) or normalize-space(cbc:PostalZone) = '')
[F-LIB033] PostalZone is mandatory for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:StreetName) or normalize-space(cbc:StreetName) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB034] There should be either a StreetName or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:BuildingNumber) or normalize-space(cbc:BuildingNumber) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB035] There should be either a BuildingNumber or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredLax') and cac:AddressLine
[F-LIB036] AddressLine elements not allowed for a StructuredLax address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (not(cbc:ID) or cbc:ID = '')
[F-LIB037] ID is required for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB038] Only the ID is used for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and ((not(cac:Country/cbc:IdentificationCode) or cac:Country/cbc:IdentificationCode = '') and (not(cbc:Region) or cbc:Region = '') and (not(cbc:District) or cbc:District = ''))
[F-LIB039] Region or District or Country/IdentificationCode is required for a StructuredRegion address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0')
[F-LIB040] Only Region, District, and/or Country/IdentificationCode can be used for a StructuredRegion address type
/[]
cbc:ID and not(string-length(cbc:ID/@schemeID)>0)
[F-LIB028] When ID is used under Address the attribute schemeID is used to give an addressregister
/[]
cbc:ID and not(cbc:ID/@schemeID)
[F-LIB029] schemeID attribute must be present on an address ID
/[]
cac:Country/cbc:IdentificationCode and not(contains($CountryCode, concat(',',cac:Country/cbc:IdentificationCode,',')))
[F-LIB301] Invalid Country/IdentificationCode: '
'. Must be a value from the codelist
/[]
(not(cbc:ID) or cbc:ID = '') and (count(cac:Address) = 0)
[F-LIB221] If ID not specified, Address is mandatory
/[]
count(cbc:DurationMeasure) = 0
[F-LIB076] DurationMeasure element must be excluded
/[]
count(cbc:DescriptionCode) = 0
[F-LIB077] DescriptionCode element must be excluded
/[]
(cbc:StartTime) and (not(cbc:StartDate) or cbc:StartDate = '')
[F-LIB078] There must be a StartDate if you have a StartTime
/[]
(cbc:EndTime) and (not(cbc:EndDate) or cbc:EndDate = '')
[F-LIB079] There must be a EndDate if you have a EndTime
/[]
(cbc:StartDate and cbc:EndDate) and not(number(translate(cbc:EndDate,'-','')) > number(translate(cbc:StartDate,'-','')) or number(translate(cbc:EndDate,'-','')) = number(translate(cbc:StartDate,'-','')))
[F-LIB080] The EndDate must be greater or equal to the startdate
/[]
(cbc:StartTime and cbc:EndTime) and not(number(translate(cbc:EndTime,':','')) > number(translate(cbc:StartTime,':','')) or number(translate(cbc:EndTime,':','')) = number(translate(cbc:StartTime,':','')))
[F-LIB081] EndTime must be greater or equal to StartTime
/[]
count(../cbc:Description) > 1 and not(./@languageID)
[W-LIB222] The attribute languageID should be used when more than one Description element is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/@languageID = self::*/@languageID
[W-LIB223] Multilanguage error. Replicated Description elements with same languageID attribute value
/[]
count(cbc:BlockName) = 0
[F-LIB210] BlockName element must be excluded
/[]
count(cbc:TimezoneOffset) = 0
[F-LIB211] TimezoneOffset element must be excluded
/[]
count(cac:LocationCoordinate) = 0
[F-LIB212] LocationCoordinate class must be excluded
/[]
normalize-space(cbc:AddressFormatCode) != ''
[F-LIB025] Invalid AddressFormatCode. Must contain a value
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listID = 'urn:oioubl:codelist:addresstypecode-1.1')
[F-LIB204] Invalid listID. Must be 'urn:oioubl:codelist:addresstypecode-1.1'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listAgencyID = '320')
[F-LIB205] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode = 'Home' or cbc:AddressTypeCode = 'Business' )
[F-LIB206] Invalid AddressTypeCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' or cbc:AddressFormatCode/@listID = 'UN/ECE 3477'
[F-LIB026] Invalid listID. Must be either 'urn:oioubl:codelist:addressformatcode-1.1' or 'UN/ECE 3477'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode/@listAgencyID = '320')
[F-LIB207] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode = 'StructuredDK' or cbc:AddressFormatCode = 'StructuredLax' or cbc:AddressFormatCode = 'StructuredID' or cbc:AddressFormatCode = 'StructuredRegion' or cbc:AddressFormatCode = 'Unstructured')
[F-LIB027] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode/@listAgencyID = '6')
[F-LIB208] Invalid listAgencyID. Must be '6'
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode = '1' or cbc:AddressFormatCode = '2' or cbc:AddressFormatCode = '3' or cbc:AddressFormatCode = '4' or cbc:AddressFormatCode = '5' or cbc:AddressFormatCode = '6' or cbc:AddressFormatCode = '7' or cbc:AddressFormatCode = '8' or cbc:AddressFormatCode = '9')
[F-LIB209] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cac:Country and not(cac:Country/cbc:IdentificationCode != '')
[F-LIB213] When Country is used the element Country/IdentificationCode must be filled out
/[]
(cbc:AddressFormatCode = 'Unstructured') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB031] An Unstructured address is only allowed to have AddressLine elements
/[]
(cbc:AddressFormatCode = 'StructuredDK') and cac:AddressLine
[F-LIB032] AddressLine elements not allowed for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and (not(cbc:PostalZone) or normalize-space(cbc:PostalZone) = '')
[F-LIB033] PostalZone is mandatory for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:StreetName) or normalize-space(cbc:StreetName) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB034] There should be either a StreetName or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:BuildingNumber) or normalize-space(cbc:BuildingNumber) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB035] There should be either a BuildingNumber or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredLax') and cac:AddressLine
[F-LIB036] AddressLine elements not allowed for a StructuredLax address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (not(cbc:ID) or cbc:ID = '')
[F-LIB037] ID is required for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB038] Only the ID is used for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and ((not(cac:Country/cbc:IdentificationCode) or cac:Country/cbc:IdentificationCode = '') and (not(cbc:Region) or cbc:Region = '') and (not(cbc:District) or cbc:District = ''))
[F-LIB039] Region or District or Country/IdentificationCode is required for a StructuredRegion address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0')
[F-LIB040] Only Region, District, and/or Country/IdentificationCode can be used for a StructuredRegion address type
/[]
cbc:ID and not(string-length(cbc:ID/@schemeID)>0)
[F-LIB028] When ID is used under Address the attribute schemeID is used to give an addressregister
/[]
cbc:ID and not(cbc:ID/@schemeID)
[F-LIB029] schemeID attribute must be present on an address ID
/[]
cac:Country/cbc:IdentificationCode and not(contains($CountryCode, concat(',',cac:Country/cbc:IdentificationCode,',')))
[F-LIB301] Invalid Country/IdentificationCode: '
'. Must be a value from the codelist
/[]
count(cbc:TaxLevelCode) = 0
[F-LIB192] TaxLevelCode element must be excluded
/[]
normalize-space(cbc:CompanyID) != ''
[F-LIB193] Invalid CompanyID. Must contain a value
/[]
cbc:CompanyID/@schemeID = 'DK:SE' or cbc:CompanyID/@schemeID = 'ZZZ'
[F-LIB195] Invalid schemeID. Must be a valid scheme for PartyTaxScheme/CompanyID
/[]
(cbc:CompanyID/@schemeID = 'DK:SE') and (string-length(normalize-space(cbc:CompanyID)) != 10 or substring(cbc:CompanyID, 1, 2) != 'DK')
[F-LIB196] schemeID = DK:SE, CompanyID must be a valid SE number (DK12345678)
/[]
count(cac:JurisdictionRegionAddress/cbc:ID) = 0
[F-LIB041] ID element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:AddressTypeCode) = 0
[F-LIB042] AddressTypeCode element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Postbox) = 0
[F-LIB043] Postbox element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Floor) = 0
[F-LIB044] Floor element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Room) = 0
[F-LIB045] Room element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:StreetName) = 0
[F-LIB046] StreetName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:AdditionalStreetName) = 0
[F-LIB047] AdditionalStreetName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BlockName) = 0
[F-LIB048] BlockName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BuildingName) = 0
[F-LIB049] BuildingName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BuildingNumber) = 0
[F-LIB050] BuildingNumber element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:InhouseMail) = 0
[F-LIB051] InhouseMail element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Department) = 0
[F-LIB052] Department element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:MarkAttention) = 0
[F-LIB053] MarkAttention element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:MarkCare) = 0
[F-LIB054] MarkCare element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:PlotIdentification) = 0
[F-LIB055] PlotIdentification element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CitySubdivisionName) = 0
[F-LIB056] CitySubdivisionName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CityName) = 0
[F-LIB057] CityName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:PostalZone) = 0
[F-LIB058] PostalZone element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CountrySubentity) = 0
[F-LIB059] CountrySubentity element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CountrySubentityCode) = 0
[F-LIB060] CountrySubentityCode element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:TimezoneOffset) = 0
[F-LIB063] TimezoneOffset element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cac:AddressLine) = 0
[F-LIB234] AddressLine class must be excluded
/[]
count(cac:JurisdictionRegionAddress/cac:LocationCoordinate) = 0
[F-LIB064] LocationCoordinate class must be excluded
/[]
(cbc:ID = '63') and cbc:TaxTypeCode
[F-LIB067] TaxTypeCode is not allowed when TaxScheme/ID equals '63' (Moms)
/[]
normalize-space(cbc:ID) != ''
[F-LIB065] Invalid TaxScheme/ID. Must contain a value.
/[]
normalize-space(cbc:Name) != ''
[F-LIB066] Invalid Name. Must contain a value
/[]
not((cbc:ID = '63' or cbc:ID = 'VAT')) and not(contains($TaxType2, concat(',',cbc:TaxTypeCode,',')))
[F-LIB197] TaxTypeCode must be a value from the '
' codelist when TaxScheme/ID is different from '63' or 'VAT' (Moms)
/[]
cbc:ID/@schemeID = $TaxScheme_schemeID or cbc:ID/@schemeID = $TaxScheme2_schemeID or cbc:ID/@schemeID = $TaxScheme4_schemeID
[F-LIB070] Invalid schemeID. Must be '
' or '
' or '
'
/[]
(cbc:TaxTypeCode) and not((cbc:TaxTypeCode/@listID = $TaxType_listID) or (cbc:TaxTypeCode/@listID = $TaxType_listID2))
[F-LIB071] Invalid listID. Must be '
' or '
'
/[]
(cbc:ID = '63') and cbc:Name != 'Moms'
[F-LIB198] Name must equal 'Moms' when TaxScheme/ID equals '63' (Moms)
/[]
(cbc:ID != '63') and cbc:Name = 'Moms'
[F-LIB199] Name must correspond to the value of TaxScheme/ID
/[]
(cac:JurisdictionRegionAddress/cac:Country/cbc:IdentificationCode) and not(contains($CountryCode, concat(',',cac:JurisdictionRegionAddress/cac:Country/cbc:IdentificationCode,',')))
[F-LIB337] Invalid Country/IdentificationCode: '
'. Must be a value from the country codelist
/[]
(cac:JurisdictionRegionAddress) and cac:JurisdictionRegionAddress/cbc:AddressFormatCode != 'StructuredRegion'
[F-LIB233] The AddressFormatCode under JurisdictionRegionAddress must always equal 'StructuredRegion'
/[]
count(cac:CorporateRegistrationScheme) = 0
[F-LIB186] CorporateRegistrationScheme class must be excluded
/[]
normalize-space(cbc:CompanyID) != ''
[F-LIB187] Invalid CompanyID. Must contain a value
/[]
cbc:CompanyID/@schemeID = 'DK:CVR' or cbc:CompanyID/@schemeID = 'DK:CPR' or cbc:CompanyID/@schemeID = 'ZZZ'
[F-LIB189] Invalid schemeID. Must be a valid scheme for PartyLegalEntity/CompanyID
/[]
(cbc:CompanyID/@schemeID = 'DK:CVR') and (string-length(normalize-space(cbc:CompanyID)) != 10 or substring(cbc:CompanyID, 1, 2) != 'DK')
[F-LIB190] schemeID = DK:CVR, CompanyID must be a valid CVR number (DK12345678)
/[]
(cbc:CompanyID/@schemeID = 'DK:CPR') and not(string-length(cbc:CompanyID) = 10)
[F-LIB191] schemeID = DK:CPR, CompanyID must be a valid CPR number (1234560000)
/[]
normalize-space(cbc:ID) != ''
[F-INV051] Invalid AccountingCustomerParty/Contact/ID. Must contain a value.
/[]
(not(cbc:ID) or cbc:ID = '') and (not(cbc:Name) or cbc:Name = '') and (not(cbc:Telephone) or cbc:Telephone = '') and (not(cbc:Telefax) or cbc:Telefax = '') and (not(cbc:ElectronicMail) or cbc:ElectronicMail = '') and (not(cbc:Note) or cbc:Note = '') and not(cac:OtherCommunication)
[F-LIB235] At least one field in the Contact class should be specified
/[]
cac:OtherCommunication/cbc:ChannelCode and cac:OtherCommunication/cbc:Channel
[F-LIB236] Use either ChannelCode or Channel
/[]
cac:OtherCommunication and not(normalize-space(cac:OtherCommunication/cbc:Value) != '')
[F-LIB237] Invalid Value. Must contain a value
/[]
(not(cbc:FamilyName) or cbc:FamilyName = '') and (not(cbc:FirstName) or cbc:FirstName = '')
[F-LIB024] There must be a FirstName if the FamilyName is not present
/[]
(not(cbc:ID) or cbc:ID = '') and (not(cbc:Name) or cbc:Name = '') and (not(cbc:Telephone) or cbc:Telephone = '') and (not(cbc:Telefax) or cbc:Telefax = '') and (not(cbc:ElectronicMail) or cbc:ElectronicMail = '') and (not(cbc:Note) or cbc:Note = '') and not(cac:OtherCommunication)
[F-LIB235] At least one field in the Contact class should be specified
/[]
cac:OtherCommunication/cbc:ChannelCode and cac:OtherCommunication/cbc:Channel
[F-LIB236] Use either ChannelCode or Channel
/[]
cac:OtherCommunication and not(normalize-space(cac:OtherCommunication/cbc:Value) != '')
[F-LIB237] Invalid Value. Must contain a value
/[]
(not(cbc:ID) or cbc:ID = '') and (not(cbc:Name) or cbc:Name = '') and (not(cbc:Telephone) or cbc:Telephone = '') and (not(cbc:Telefax) or cbc:Telefax = '') and (not(cbc:ElectronicMail) or cbc:ElectronicMail = '') and (not(cbc:Note) or cbc:Note = '') and not(cac:OtherCommunication)
[F-LIB235] At least one field in the Contact class should be specified
/[]
cac:OtherCommunication/cbc:ChannelCode and cac:OtherCommunication/cbc:Channel
[F-LIB236] Use either ChannelCode or Channel
/[]
cac:OtherCommunication and not(normalize-space(cac:OtherCommunication/cbc:Value) != '')
[F-LIB237] Invalid Value. Must contain a value
/[]
(not(cbc:ID) or cbc:ID = '') and (not(cbc:Name) or cbc:Name = '') and (not(cbc:Telephone) or cbc:Telephone = '') and (not(cbc:Telefax) or cbc:Telefax = '') and (not(cbc:ElectronicMail) or cbc:ElectronicMail = '') and (not(cbc:Note) or cbc:Note = '') and not(cac:OtherCommunication)
[F-LIB235] At least one field in the Contact class should be specified
/[]
cac:OtherCommunication/cbc:ChannelCode and cac:OtherCommunication/cbc:Channel
[F-LIB236] Use either ChannelCode or Channel
/[]
cac:OtherCommunication and not(normalize-space(cac:OtherCommunication/cbc:Value) != '')
[F-LIB237] Invalid Value. Must contain a value
/[]
count(cbc:MarkCareIndicator) = 0
[F-LIB166] MarkCareIndicator element must be excluded
/[]
count(cbc:MarkAttentionIndicator) = 0
[F-LIB167] MarkAttentionIndicator element must be excluded
/[]
count(cac:AgentParty) = 0
[F-LIB168] AgentParty class must be excluded
/[]
(not(cac:PartyIdentification) or cac:PartyIdentification/cbc:ID = '') and (not(cac:PartyName) or cac:PartyName/cbc:Name = '')
[F-LIB022] PartyName/Name is mandatory if PartyIdentification/ID is not found
/[]
cbc:EndpointID and not(contains($EndpointID_schemeID, concat(',',cbc:EndpointID/@schemeID,',')))
[F-LIB179] Invalid schemeID: '
'. Must be a value from the codelist: '
'
/[]
(cbc:EndpointID/@schemeID = 'DK:CVR') and (string-length(cbc:EndpointID) != 10 or substring(cbc:EndpointID, 1, 2) != 'DK')
[F-LIB180] schemeID = DK:CVR, EndpointID must be a valid CVR number (DK12345678)
/[]
(cbc:EndpointID/@schemeID = 'DK:CPR') and not(string-length(cbc:EndpointID) = 10)
[F-LIB215] schemeID = DK:CPR, EndpointID must be a valid CPR number (1234560000)
/[]
(cbc:EndpointID/@schemeID = 'GLN') and not(string-length(cbc:EndpointID) = 13)
[F-LIB181] schemeID = GLN, EndpointID must be a valid GLN number (1234567890123)
/[]
(cbc:EndpointID/@schemeID = 'EAN') and not(string-length(cbc:EndpointID) = 13)
[F-LIB216] schemeID = EAN, EndpointID must be a valid EAN number (1234567890123)
/[]
count(cac:PartyLegalEntity) > 1
[F-INV319] No more than one PartyLegalEntity class may be present
/[]
not(contains($PartyID_schemeID, concat(',',cbc:ID/@schemeID,',')))
[F-LIB183] Invalid schemeID: '
'. Must be a value from the codelist: '
'
/[]
(cbc:ID/@schemeID = 'DK:CVR') and (string-length(cbc:ID) != 10 or substring(cbc:ID, 1, 2) != 'DK')
[F-LIB184] schemeID = DK:CVR, ID must be a valid CVR number (DK12345678)
/[]
(cbc:ID/@schemeID = 'DK:CPR') and not(string-length(cbc:ID) = 10)
[F-LIB217] schemeID = DK:CPR, ID must be a valid CPR number (1234560000)
/[]
(cbc:ID/@schemeID = 'GLN') and not(string-length(cbc:ID) = 13)
[F-LIB185] schemeID = GLN, ID must be a valid GLN number (1234567890123)
/[]
(cbc:ID/@schemeID = 'EAN') and not(string-length(cbc:ID) = 13)
[F-LIB218] schemeID = EAN, ID must be a valid EAN number (1234567890123)
/[]
(cbc:ID/@schemeID = 'DK:P') and not(string-length(cbc:ID) = 10)
[F-LIB287] schemeID = DK:P, ID must be a valid P number (1234567890)
/[]
count(../cac:PartyName) > 1 and not(./cbc:Name/@languageID)
[W-LIB219] The attribute Name@languageID should be used when more than one PartyName class is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/cbc:Name/@languageID = self::*/cbc:Name/@languageID
[W-LIB220] Multilanguage error. Replicated PartyName classes with same Name@languageID attribute value
/[]
count(cbc:BlockName) = 0
[F-LIB210] BlockName element must be excluded
/[]
count(cbc:TimezoneOffset) = 0
[F-LIB211] TimezoneOffset element must be excluded
/[]
count(cac:LocationCoordinate) = 0
[F-LIB212] LocationCoordinate class must be excluded
/[]
normalize-space(cbc:AddressFormatCode) != ''
[F-LIB025] Invalid AddressFormatCode. Must contain a value
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listID = 'urn:oioubl:codelist:addresstypecode-1.1')
[F-LIB204] Invalid listID. Must be 'urn:oioubl:codelist:addresstypecode-1.1'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listAgencyID = '320')
[F-LIB205] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode = 'Home' or cbc:AddressTypeCode = 'Business' )
[F-LIB206] Invalid AddressTypeCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' or cbc:AddressFormatCode/@listID = 'UN/ECE 3477'
[F-LIB026] Invalid listID. Must be either 'urn:oioubl:codelist:addressformatcode-1.1' or 'UN/ECE 3477'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode/@listAgencyID = '320')
[F-LIB207] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode = 'StructuredDK' or cbc:AddressFormatCode = 'StructuredLax' or cbc:AddressFormatCode = 'StructuredID' or cbc:AddressFormatCode = 'StructuredRegion' or cbc:AddressFormatCode = 'Unstructured')
[F-LIB027] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode/@listAgencyID = '6')
[F-LIB208] Invalid listAgencyID. Must be '6'
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode = '1' or cbc:AddressFormatCode = '2' or cbc:AddressFormatCode = '3' or cbc:AddressFormatCode = '4' or cbc:AddressFormatCode = '5' or cbc:AddressFormatCode = '6' or cbc:AddressFormatCode = '7' or cbc:AddressFormatCode = '8' or cbc:AddressFormatCode = '9')
[F-LIB209] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cac:Country and not(cac:Country/cbc:IdentificationCode != '')
[F-LIB213] When Country is used the element Country/IdentificationCode must be filled out
/[]
(cbc:AddressFormatCode = 'Unstructured') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB031] An Unstructured address is only allowed to have AddressLine elements
/[]
(cbc:AddressFormatCode = 'StructuredDK') and cac:AddressLine
[F-LIB032] AddressLine elements not allowed for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and (not(cbc:PostalZone) or normalize-space(cbc:PostalZone) = '')
[F-LIB033] PostalZone is mandatory for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:StreetName) or normalize-space(cbc:StreetName) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB034] There should be either a StreetName or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:BuildingNumber) or normalize-space(cbc:BuildingNumber) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB035] There should be either a BuildingNumber or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredLax') and cac:AddressLine
[F-LIB036] AddressLine elements not allowed for a StructuredLax address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (not(cbc:ID) or cbc:ID = '')
[F-LIB037] ID is required for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB038] Only the ID is used for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and ((not(cac:Country/cbc:IdentificationCode) or cac:Country/cbc:IdentificationCode = '') and (not(cbc:Region) or cbc:Region = '') and (not(cbc:District) or cbc:District = ''))
[F-LIB039] Region or District or Country/IdentificationCode is required for a StructuredRegion address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0')
[F-LIB040] Only Region, District, and/or Country/IdentificationCode can be used for a StructuredRegion address type
/[]
cbc:ID and not(string-length(cbc:ID/@schemeID)>0)
[F-LIB028] When ID is used under Address the attribute schemeID is used to give an addressregister
/[]
cbc:ID and not(cbc:ID/@schemeID)
[F-LIB029] schemeID attribute must be present on an address ID
/[]
cac:Country/cbc:IdentificationCode and not(contains($CountryCode, concat(',',cac:Country/cbc:IdentificationCode,',')))
[F-LIB301] Invalid Country/IdentificationCode: '
'. Must be a value from the codelist
/[]
(not(cbc:ID) or cbc:ID = '') and (count(cac:Address) = 0)
[F-LIB221] If ID not specified, Address is mandatory
/[]
count(cbc:DurationMeasure) = 0
[F-LIB076] DurationMeasure element must be excluded
/[]
count(cbc:DescriptionCode) = 0
[F-LIB077] DescriptionCode element must be excluded
/[]
(cbc:StartTime) and (not(cbc:StartDate) or cbc:StartDate = '')
[F-LIB078] There must be a StartDate if you have a StartTime
/[]
(cbc:EndTime) and (not(cbc:EndDate) or cbc:EndDate = '')
[F-LIB079] There must be a EndDate if you have a EndTime
/[]
(cbc:StartDate and cbc:EndDate) and not(number(translate(cbc:EndDate,'-','')) > number(translate(cbc:StartDate,'-','')) or number(translate(cbc:EndDate,'-','')) = number(translate(cbc:StartDate,'-','')))
[F-LIB080] The EndDate must be greater or equal to the startdate
/[]
(cbc:StartTime and cbc:EndTime) and not(number(translate(cbc:EndTime,':','')) > number(translate(cbc:StartTime,':','')) or number(translate(cbc:EndTime,':','')) = number(translate(cbc:StartTime,':','')))
[F-LIB081] EndTime must be greater or equal to StartTime
/[]
count(../cbc:Description) > 1 and not(./@languageID)
[W-LIB222] The attribute languageID should be used when more than one Description element is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/@languageID = self::*/@languageID
[W-LIB223] Multilanguage error. Replicated Description elements with same languageID attribute value
/[]
count(cbc:BlockName) = 0
[F-LIB210] BlockName element must be excluded
/[]
count(cbc:TimezoneOffset) = 0
[F-LIB211] TimezoneOffset element must be excluded
/[]
count(cac:LocationCoordinate) = 0
[F-LIB212] LocationCoordinate class must be excluded
/[]
normalize-space(cbc:AddressFormatCode) != ''
[F-LIB025] Invalid AddressFormatCode. Must contain a value
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listID = 'urn:oioubl:codelist:addresstypecode-1.1')
[F-LIB204] Invalid listID. Must be 'urn:oioubl:codelist:addresstypecode-1.1'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listAgencyID = '320')
[F-LIB205] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode = 'Home' or cbc:AddressTypeCode = 'Business' )
[F-LIB206] Invalid AddressTypeCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' or cbc:AddressFormatCode/@listID = 'UN/ECE 3477'
[F-LIB026] Invalid listID. Must be either 'urn:oioubl:codelist:addressformatcode-1.1' or 'UN/ECE 3477'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode/@listAgencyID = '320')
[F-LIB207] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode = 'StructuredDK' or cbc:AddressFormatCode = 'StructuredLax' or cbc:AddressFormatCode = 'StructuredID' or cbc:AddressFormatCode = 'StructuredRegion' or cbc:AddressFormatCode = 'Unstructured')
[F-LIB027] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode/@listAgencyID = '6')
[F-LIB208] Invalid listAgencyID. Must be '6'
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode = '1' or cbc:AddressFormatCode = '2' or cbc:AddressFormatCode = '3' or cbc:AddressFormatCode = '4' or cbc:AddressFormatCode = '5' or cbc:AddressFormatCode = '6' or cbc:AddressFormatCode = '7' or cbc:AddressFormatCode = '8' or cbc:AddressFormatCode = '9')
[F-LIB209] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cac:Country and not(cac:Country/cbc:IdentificationCode != '')
[F-LIB213] When Country is used the element Country/IdentificationCode must be filled out
/[]
(cbc:AddressFormatCode = 'Unstructured') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB031] An Unstructured address is only allowed to have AddressLine elements
/[]
(cbc:AddressFormatCode = 'StructuredDK') and cac:AddressLine
[F-LIB032] AddressLine elements not allowed for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and (not(cbc:PostalZone) or normalize-space(cbc:PostalZone) = '')
[F-LIB033] PostalZone is mandatory for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:StreetName) or normalize-space(cbc:StreetName) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB034] There should be either a StreetName or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:BuildingNumber) or normalize-space(cbc:BuildingNumber) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB035] There should be either a BuildingNumber or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredLax') and cac:AddressLine
[F-LIB036] AddressLine elements not allowed for a StructuredLax address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (not(cbc:ID) or cbc:ID = '')
[F-LIB037] ID is required for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB038] Only the ID is used for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and ((not(cac:Country/cbc:IdentificationCode) or cac:Country/cbc:IdentificationCode = '') and (not(cbc:Region) or cbc:Region = '') and (not(cbc:District) or cbc:District = ''))
[F-LIB039] Region or District or Country/IdentificationCode is required for a StructuredRegion address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0')
[F-LIB040] Only Region, District, and/or Country/IdentificationCode can be used for a StructuredRegion address type
/[]
cbc:ID and not(string-length(cbc:ID/@schemeID)>0)
[F-LIB028] When ID is used under Address the attribute schemeID is used to give an addressregister
/[]
cbc:ID and not(cbc:ID/@schemeID)
[F-LIB029] schemeID attribute must be present on an address ID
/[]
cac:Country/cbc:IdentificationCode and not(contains($CountryCode, concat(',',cac:Country/cbc:IdentificationCode,',')))
[F-LIB301] Invalid Country/IdentificationCode: '
'. Must be a value from the codelist
/[]
count(cbc:TaxLevelCode) = 0
[F-LIB192] TaxLevelCode element must be excluded
/[]
normalize-space(cbc:CompanyID) != ''
[F-LIB193] Invalid CompanyID. Must contain a value
/[]
cbc:CompanyID/@schemeID = 'DK:SE' or cbc:CompanyID/@schemeID = 'ZZZ'
[F-LIB195] Invalid schemeID. Must be a valid scheme for PartyTaxScheme/CompanyID
/[]
(cbc:CompanyID/@schemeID = 'DK:SE') and (string-length(normalize-space(cbc:CompanyID)) != 10 or substring(cbc:CompanyID, 1, 2) != 'DK')
[F-LIB196] schemeID = DK:SE, CompanyID must be a valid SE number (DK12345678)
/[]
count(cac:JurisdictionRegionAddress/cbc:ID) = 0
[F-LIB041] ID element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:AddressTypeCode) = 0
[F-LIB042] AddressTypeCode element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Postbox) = 0
[F-LIB043] Postbox element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Floor) = 0
[F-LIB044] Floor element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Room) = 0
[F-LIB045] Room element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:StreetName) = 0
[F-LIB046] StreetName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:AdditionalStreetName) = 0
[F-LIB047] AdditionalStreetName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BlockName) = 0
[F-LIB048] BlockName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BuildingName) = 0
[F-LIB049] BuildingName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BuildingNumber) = 0
[F-LIB050] BuildingNumber element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:InhouseMail) = 0
[F-LIB051] InhouseMail element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Department) = 0
[F-LIB052] Department element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:MarkAttention) = 0
[F-LIB053] MarkAttention element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:MarkCare) = 0
[F-LIB054] MarkCare element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:PlotIdentification) = 0
[F-LIB055] PlotIdentification element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CitySubdivisionName) = 0
[F-LIB056] CitySubdivisionName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CityName) = 0
[F-LIB057] CityName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:PostalZone) = 0
[F-LIB058] PostalZone element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CountrySubentity) = 0
[F-LIB059] CountrySubentity element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CountrySubentityCode) = 0
[F-LIB060] CountrySubentityCode element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:TimezoneOffset) = 0
[F-LIB063] TimezoneOffset element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cac:AddressLine) = 0
[F-LIB234] AddressLine class must be excluded
/[]
count(cac:JurisdictionRegionAddress/cac:LocationCoordinate) = 0
[F-LIB064] LocationCoordinate class must be excluded
/[]
(cbc:ID = '63') and cbc:TaxTypeCode
[F-LIB067] TaxTypeCode is not allowed when TaxScheme/ID equals '63' (Moms)
/[]
normalize-space(cbc:ID) != ''
[F-LIB065] Invalid TaxScheme/ID. Must contain a value.
/[]
normalize-space(cbc:Name) != ''
[F-LIB066] Invalid Name. Must contain a value
/[]
not((cbc:ID = '63' or cbc:ID = 'VAT')) and not(contains($TaxType2, concat(',',cbc:TaxTypeCode,',')))
[F-LIB197] TaxTypeCode must be a value from the '
' codelist when TaxScheme/ID is different from '63' or 'VAT' (Moms)
/[]
cbc:ID/@schemeID = $TaxScheme_schemeID or cbc:ID/@schemeID = $TaxScheme2_schemeID or cbc:ID/@schemeID = $TaxScheme4_schemeID
[F-LIB070] Invalid schemeID. Must be '
' or '
' or '
'
/[]
(cbc:TaxTypeCode) and not((cbc:TaxTypeCode/@listID = $TaxType_listID) or (cbc:TaxTypeCode/@listID = $TaxType_listID2))
[F-LIB071] Invalid listID. Must be '
' or '
'
/[]
(cbc:ID = '63') and cbc:Name != 'Moms'
[F-LIB198] Name must equal 'Moms' when TaxScheme/ID equals '63' (Moms)
/[]
(cbc:ID != '63') and cbc:Name = 'Moms'
[F-LIB199] Name must correspond to the value of TaxScheme/ID
/[]
(cac:JurisdictionRegionAddress/cac:Country/cbc:IdentificationCode) and not(contains($CountryCode, concat(',',cac:JurisdictionRegionAddress/cac:Country/cbc:IdentificationCode,',')))
[F-LIB337] Invalid Country/IdentificationCode: '
'. Must be a value from the country codelist
/[]
(cac:JurisdictionRegionAddress) and cac:JurisdictionRegionAddress/cbc:AddressFormatCode != 'StructuredRegion'
[F-LIB233] The AddressFormatCode under JurisdictionRegionAddress must always equal 'StructuredRegion'
/[]
count(cac:CorporateRegistrationScheme) = 0
[F-LIB186] CorporateRegistrationScheme class must be excluded
/[]
normalize-space(cbc:CompanyID) != ''
[F-LIB187] Invalid CompanyID. Must contain a value
/[]
cbc:CompanyID/@schemeID = 'DK:CVR' or cbc:CompanyID/@schemeID = 'DK:CPR' or cbc:CompanyID/@schemeID = 'ZZZ'
[F-LIB189] Invalid schemeID. Must be a valid scheme for PartyLegalEntity/CompanyID
/[]
(cbc:CompanyID/@schemeID = 'DK:CVR') and (string-length(normalize-space(cbc:CompanyID)) != 10 or substring(cbc:CompanyID, 1, 2) != 'DK')
[F-LIB190] schemeID = DK:CVR, CompanyID must be a valid CVR number (DK12345678)
/[]
(cbc:CompanyID/@schemeID = 'DK:CPR') and not(string-length(cbc:CompanyID) = 10)
[F-LIB191] schemeID = DK:CPR, CompanyID must be a valid CPR number (1234560000)
/[]
(not(cbc:ID) or cbc:ID = '') and (not(cbc:Name) or cbc:Name = '') and (not(cbc:Telephone) or cbc:Telephone = '') and (not(cbc:Telefax) or cbc:Telefax = '') and (not(cbc:ElectronicMail) or cbc:ElectronicMail = '') and (not(cbc:Note) or cbc:Note = '') and not(cac:OtherCommunication)
[F-LIB235] At least one field in the Contact class should be specified
/[]
cac:OtherCommunication/cbc:ChannelCode and cac:OtherCommunication/cbc:Channel
[F-LIB236] Use either ChannelCode or Channel
/[]
cac:OtherCommunication and not(normalize-space(cac:OtherCommunication/cbc:Value) != '')
[F-LIB237] Invalid Value. Must contain a value
/[]
(not(cbc:FamilyName) or cbc:FamilyName = '') and (not(cbc:FirstName) or cbc:FirstName = '')
[F-LIB024] There must be a FirstName if the FamilyName is not present
/[]
count(cac:Party) = 1
[F-INV061] Party class must be present
/[]
count(cbc:MarkCareIndicator) = 0
[F-LIB166] MarkCareIndicator element must be excluded
/[]
count(cbc:MarkAttentionIndicator) = 0
[F-LIB167] MarkAttentionIndicator element must be excluded
/[]
count(cac:AgentParty) = 0
[F-LIB168] AgentParty class must be excluded
/[]
(not(cac:PartyIdentification) or cac:PartyIdentification/cbc:ID = '') and (not(cac:PartyName) or cac:PartyName/cbc:Name = '')
[F-LIB022] PartyName/Name is mandatory if PartyIdentification/ID is not found
/[]
cbc:EndpointID and not(contains($EndpointID_schemeID, concat(',',cbc:EndpointID/@schemeID,',')))
[F-LIB179] Invalid schemeID: '
'. Must be a value from the codelist: '
'
/[]
(cbc:EndpointID/@schemeID = 'DK:CVR') and (string-length(cbc:EndpointID) != 10 or substring(cbc:EndpointID, 1, 2) != 'DK')
[F-LIB180] schemeID = DK:CVR, EndpointID must be a valid CVR number (DK12345678)
/[]
(cbc:EndpointID/@schemeID = 'DK:CPR') and not(string-length(cbc:EndpointID) = 10)
[F-LIB215] schemeID = DK:CPR, EndpointID must be a valid CPR number (1234560000)
/[]
(cbc:EndpointID/@schemeID = 'GLN') and not(string-length(cbc:EndpointID) = 13)
[F-LIB181] schemeID = GLN, EndpointID must be a valid GLN number (1234567890123)
/[]
(cbc:EndpointID/@schemeID = 'EAN') and not(string-length(cbc:EndpointID) = 13)
[F-LIB216] schemeID = EAN, EndpointID must be a valid EAN number (1234567890123)
/[]
count(cac:PartyLegalEntity) > 1
[F-INV320] No more than one PartyLegalEntity class may be present
/[]
not(contains($PartyID_schemeID, concat(',',cbc:ID/@schemeID,',')))
[F-LIB183] Invalid schemeID: '
'. Must be a value from the codelist: '
'
/[]
(cbc:ID/@schemeID = 'DK:CVR') and (string-length(cbc:ID) != 10 or substring(cbc:ID, 1, 2) != 'DK')
[F-LIB184] schemeID = DK:CVR, ID must be a valid CVR number (DK12345678)
/[]
(cbc:ID/@schemeID = 'DK:CPR') and not(string-length(cbc:ID) = 10)
[F-LIB217] schemeID = DK:CPR, ID must be a valid CPR number (1234560000)
/[]
(cbc:ID/@schemeID = 'GLN') and not(string-length(cbc:ID) = 13)
[F-LIB185] schemeID = GLN, ID must be a valid GLN number (1234567890123)
/[]
(cbc:ID/@schemeID = 'EAN') and not(string-length(cbc:ID) = 13)
[F-LIB218] schemeID = EAN, ID must be a valid EAN number (1234567890123)
/[]
(cbc:ID/@schemeID = 'DK:P') and not(string-length(cbc:ID) = 10)
[F-LIB287] schemeID = DK:P, ID must be a valid P number (1234567890)
/[]
count(../cac:PartyName) > 1 and not(./cbc:Name/@languageID)
[W-LIB219] The attribute Name@languageID should be used when more than one PartyName class is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/cbc:Name/@languageID = self::*/cbc:Name/@languageID
[W-LIB220] Multilanguage error. Replicated PartyName classes with same Name@languageID attribute value
/[]
count(cbc:BlockName) = 0
[F-LIB210] BlockName element must be excluded
/[]
count(cbc:TimezoneOffset) = 0
[F-LIB211] TimezoneOffset element must be excluded
/[]
count(cac:LocationCoordinate) = 0
[F-LIB212] LocationCoordinate class must be excluded
/[]
normalize-space(cbc:AddressFormatCode) != ''
[F-LIB025] Invalid AddressFormatCode. Must contain a value
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listID = 'urn:oioubl:codelist:addresstypecode-1.1')
[F-LIB204] Invalid listID. Must be 'urn:oioubl:codelist:addresstypecode-1.1'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listAgencyID = '320')
[F-LIB205] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode = 'Home' or cbc:AddressTypeCode = 'Business' )
[F-LIB206] Invalid AddressTypeCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' or cbc:AddressFormatCode/@listID = 'UN/ECE 3477'
[F-LIB026] Invalid listID. Must be either 'urn:oioubl:codelist:addressformatcode-1.1' or 'UN/ECE 3477'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode/@listAgencyID = '320')
[F-LIB207] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode = 'StructuredDK' or cbc:AddressFormatCode = 'StructuredLax' or cbc:AddressFormatCode = 'StructuredID' or cbc:AddressFormatCode = 'StructuredRegion' or cbc:AddressFormatCode = 'Unstructured')
[F-LIB027] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode/@listAgencyID = '6')
[F-LIB208] Invalid listAgencyID. Must be '6'
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode = '1' or cbc:AddressFormatCode = '2' or cbc:AddressFormatCode = '3' or cbc:AddressFormatCode = '4' or cbc:AddressFormatCode = '5' or cbc:AddressFormatCode = '6' or cbc:AddressFormatCode = '7' or cbc:AddressFormatCode = '8' or cbc:AddressFormatCode = '9')
[F-LIB209] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cac:Country and not(cac:Country/cbc:IdentificationCode != '')
[F-LIB213] When Country is used the element Country/IdentificationCode must be filled out
/[]
(cbc:AddressFormatCode = 'Unstructured') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB031] An Unstructured address is only allowed to have AddressLine elements
/[]
(cbc:AddressFormatCode = 'StructuredDK') and cac:AddressLine
[F-LIB032] AddressLine elements not allowed for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and (not(cbc:PostalZone) or normalize-space(cbc:PostalZone) = '')
[F-LIB033] PostalZone is mandatory for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:StreetName) or normalize-space(cbc:StreetName) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB034] There should be either a StreetName or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:BuildingNumber) or normalize-space(cbc:BuildingNumber) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB035] There should be either a BuildingNumber or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredLax') and cac:AddressLine
[F-LIB036] AddressLine elements not allowed for a StructuredLax address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (not(cbc:ID) or cbc:ID = '')
[F-LIB037] ID is required for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB038] Only the ID is used for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and ((not(cac:Country/cbc:IdentificationCode) or cac:Country/cbc:IdentificationCode = '') and (not(cbc:Region) or cbc:Region = '') and (not(cbc:District) or cbc:District = ''))
[F-LIB039] Region or District or Country/IdentificationCode is required for a StructuredRegion address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0')
[F-LIB040] Only Region, District, and/or Country/IdentificationCode can be used for a StructuredRegion address type
/[]
cbc:ID and not(string-length(cbc:ID/@schemeID)>0)
[F-LIB028] When ID is used under Address the attribute schemeID is used to give an addressregister
/[]
cbc:ID and not(cbc:ID/@schemeID)
[F-LIB029] schemeID attribute must be present on an address ID
/[]
cac:Country/cbc:IdentificationCode and not(contains($CountryCode, concat(',',cac:Country/cbc:IdentificationCode,',')))
[F-LIB301] Invalid Country/IdentificationCode: '
'. Must be a value from the codelist
/[]
(not(cbc:ID) or cbc:ID = '') and (count(cac:Address) = 0)
[F-LIB221] If ID not specified, Address is mandatory
/[]
count(cbc:DurationMeasure) = 0
[F-LIB076] DurationMeasure element must be excluded
/[]
count(cbc:DescriptionCode) = 0
[F-LIB077] DescriptionCode element must be excluded
/[]
(cbc:StartTime) and (not(cbc:StartDate) or cbc:StartDate = '')
[F-LIB078] There must be a StartDate if you have a StartTime
/[]
(cbc:EndTime) and (not(cbc:EndDate) or cbc:EndDate = '')
[F-LIB079] There must be a EndDate if you have a EndTime
/[]
(cbc:StartDate and cbc:EndDate) and not(number(translate(cbc:EndDate,'-','')) > number(translate(cbc:StartDate,'-','')) or number(translate(cbc:EndDate,'-','')) = number(translate(cbc:StartDate,'-','')))
[F-LIB080] The EndDate must be greater or equal to the startdate
/[]
(cbc:StartTime and cbc:EndTime) and not(number(translate(cbc:EndTime,':','')) > number(translate(cbc:StartTime,':','')) or number(translate(cbc:EndTime,':','')) = number(translate(cbc:StartTime,':','')))
[F-LIB081] EndTime must be greater or equal to StartTime
/[]
count(../cbc:Description) > 1 and not(./@languageID)
[W-LIB222] The attribute languageID should be used when more than one Description element is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/@languageID = self::*/@languageID
[W-LIB223] Multilanguage error. Replicated Description elements with same languageID attribute value
/[]
count(cbc:BlockName) = 0
[F-LIB210] BlockName element must be excluded
/[]
count(cbc:TimezoneOffset) = 0
[F-LIB211] TimezoneOffset element must be excluded
/[]
count(cac:LocationCoordinate) = 0
[F-LIB212] LocationCoordinate class must be excluded
/[]
normalize-space(cbc:AddressFormatCode) != ''
[F-LIB025] Invalid AddressFormatCode. Must contain a value
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listID = 'urn:oioubl:codelist:addresstypecode-1.1')
[F-LIB204] Invalid listID. Must be 'urn:oioubl:codelist:addresstypecode-1.1'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listAgencyID = '320')
[F-LIB205] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode = 'Home' or cbc:AddressTypeCode = 'Business' )
[F-LIB206] Invalid AddressTypeCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' or cbc:AddressFormatCode/@listID = 'UN/ECE 3477'
[F-LIB026] Invalid listID. Must be either 'urn:oioubl:codelist:addressformatcode-1.1' or 'UN/ECE 3477'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode/@listAgencyID = '320')
[F-LIB207] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode = 'StructuredDK' or cbc:AddressFormatCode = 'StructuredLax' or cbc:AddressFormatCode = 'StructuredID' or cbc:AddressFormatCode = 'StructuredRegion' or cbc:AddressFormatCode = 'Unstructured')
[F-LIB027] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode/@listAgencyID = '6')
[F-LIB208] Invalid listAgencyID. Must be '6'
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode = '1' or cbc:AddressFormatCode = '2' or cbc:AddressFormatCode = '3' or cbc:AddressFormatCode = '4' or cbc:AddressFormatCode = '5' or cbc:AddressFormatCode = '6' or cbc:AddressFormatCode = '7' or cbc:AddressFormatCode = '8' or cbc:AddressFormatCode = '9')
[F-LIB209] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cac:Country and not(cac:Country/cbc:IdentificationCode != '')
[F-LIB213] When Country is used the element Country/IdentificationCode must be filled out
/[]
(cbc:AddressFormatCode = 'Unstructured') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB031] An Unstructured address is only allowed to have AddressLine elements
/[]
(cbc:AddressFormatCode = 'StructuredDK') and cac:AddressLine
[F-LIB032] AddressLine elements not allowed for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and (not(cbc:PostalZone) or normalize-space(cbc:PostalZone) = '')
[F-LIB033] PostalZone is mandatory for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:StreetName) or normalize-space(cbc:StreetName) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB034] There should be either a StreetName or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:BuildingNumber) or normalize-space(cbc:BuildingNumber) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB035] There should be either a BuildingNumber or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredLax') and cac:AddressLine
[F-LIB036] AddressLine elements not allowed for a StructuredLax address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (not(cbc:ID) or cbc:ID = '')
[F-LIB037] ID is required for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB038] Only the ID is used for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and ((not(cac:Country/cbc:IdentificationCode) or cac:Country/cbc:IdentificationCode = '') and (not(cbc:Region) or cbc:Region = '') and (not(cbc:District) or cbc:District = ''))
[F-LIB039] Region or District or Country/IdentificationCode is required for a StructuredRegion address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0')
[F-LIB040] Only Region, District, and/or Country/IdentificationCode can be used for a StructuredRegion address type
/[]
cbc:ID and not(string-length(cbc:ID/@schemeID)>0)
[F-LIB028] When ID is used under Address the attribute schemeID is used to give an addressregister
/[]
cbc:ID and not(cbc:ID/@schemeID)
[F-LIB029] schemeID attribute must be present on an address ID
/[]
cac:Country/cbc:IdentificationCode and not(contains($CountryCode, concat(',',cac:Country/cbc:IdentificationCode,',')))
[F-LIB301] Invalid Country/IdentificationCode: '
'. Must be a value from the codelist
/[]
count(cbc:TaxLevelCode) = 0
[F-LIB192] TaxLevelCode element must be excluded
/[]
normalize-space(cbc:CompanyID) != ''
[F-LIB193] Invalid CompanyID. Must contain a value
/[]
cbc:CompanyID/@schemeID = 'DK:SE' or cbc:CompanyID/@schemeID = 'ZZZ'
[F-LIB195] Invalid schemeID. Must be a valid scheme for PartyTaxScheme/CompanyID
/[]
(cbc:CompanyID/@schemeID = 'DK:SE') and (string-length(normalize-space(cbc:CompanyID)) != 10 or substring(cbc:CompanyID, 1, 2) != 'DK')
[F-LIB196] schemeID = DK:SE, CompanyID must be a valid SE number (DK12345678)
/[]
count(cac:JurisdictionRegionAddress/cbc:ID) = 0
[F-LIB041] ID element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:AddressTypeCode) = 0
[F-LIB042] AddressTypeCode element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Postbox) = 0
[F-LIB043] Postbox element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Floor) = 0
[F-LIB044] Floor element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Room) = 0
[F-LIB045] Room element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:StreetName) = 0
[F-LIB046] StreetName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:AdditionalStreetName) = 0
[F-LIB047] AdditionalStreetName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BlockName) = 0
[F-LIB048] BlockName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BuildingName) = 0
[F-LIB049] BuildingName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BuildingNumber) = 0
[F-LIB050] BuildingNumber element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:InhouseMail) = 0
[F-LIB051] InhouseMail element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Department) = 0
[F-LIB052] Department element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:MarkAttention) = 0
[F-LIB053] MarkAttention element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:MarkCare) = 0
[F-LIB054] MarkCare element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:PlotIdentification) = 0
[F-LIB055] PlotIdentification element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CitySubdivisionName) = 0
[F-LIB056] CitySubdivisionName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CityName) = 0
[F-LIB057] CityName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:PostalZone) = 0
[F-LIB058] PostalZone element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CountrySubentity) = 0
[F-LIB059] CountrySubentity element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CountrySubentityCode) = 0
[F-LIB060] CountrySubentityCode element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:TimezoneOffset) = 0
[F-LIB063] TimezoneOffset element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cac:AddressLine) = 0
[F-LIB234] AddressLine class must be excluded
/[]
count(cac:JurisdictionRegionAddress/cac:LocationCoordinate) = 0
[F-LIB064] LocationCoordinate class must be excluded
/[]
(cbc:ID = '63') and cbc:TaxTypeCode
[F-LIB067] TaxTypeCode is not allowed when TaxScheme/ID equals '63' (Moms)
/[]
normalize-space(cbc:ID) != ''
[F-LIB065] Invalid TaxScheme/ID. Must contain a value.
/[]
normalize-space(cbc:Name) != ''
[F-LIB066] Invalid Name. Must contain a value
/[]
not((cbc:ID = '63' or cbc:ID = 'VAT')) and not(contains($TaxType2, concat(',',cbc:TaxTypeCode,',')))
[F-LIB197] TaxTypeCode must be a value from the '
' codelist when TaxScheme/ID is different from '63' or 'VAT' (Moms)
/[]
cbc:ID/@schemeID = $TaxScheme_schemeID or cbc:ID/@schemeID = $TaxScheme2_schemeID or cbc:ID/@schemeID = $TaxScheme4_schemeID
[F-LIB070] Invalid schemeID. Must be '
' or '
' or '
'
/[]
(cbc:TaxTypeCode) and not((cbc:TaxTypeCode/@listID = $TaxType_listID) or (cbc:TaxTypeCode/@listID = $TaxType_listID2))
[F-LIB071] Invalid listID. Must be '
' or '
'
/[]
(cbc:ID = '63') and cbc:Name != 'Moms'
[F-LIB198] Name must equal 'Moms' when TaxScheme/ID equals '63' (Moms)
/[]
(cbc:ID != '63') and cbc:Name = 'Moms'
[F-LIB199] Name must correspond to the value of TaxScheme/ID
/[]
(cac:JurisdictionRegionAddress/cac:Country/cbc:IdentificationCode) and not(contains($CountryCode, concat(',',cac:JurisdictionRegionAddress/cac:Country/cbc:IdentificationCode,',')))
[F-LIB337] Invalid Country/IdentificationCode: '
'. Must be a value from the country codelist
/[]
(cac:JurisdictionRegionAddress) and cac:JurisdictionRegionAddress/cbc:AddressFormatCode != 'StructuredRegion'
[F-LIB233] The AddressFormatCode under JurisdictionRegionAddress must always equal 'StructuredRegion'
/[]
count(cac:CorporateRegistrationScheme) = 0
[F-LIB186] CorporateRegistrationScheme class must be excluded
/[]
normalize-space(cbc:CompanyID) != ''
[F-LIB187] Invalid CompanyID. Must contain a value
/[]
cbc:CompanyID/@schemeID = 'DK:CVR' or cbc:CompanyID/@schemeID = 'DK:CPR' or cbc:CompanyID/@schemeID = 'ZZZ'
[F-LIB189] Invalid schemeID. Must be a valid scheme for PartyLegalEntity/CompanyID
/[]
(cbc:CompanyID/@schemeID = 'DK:CVR') and (string-length(normalize-space(cbc:CompanyID)) != 10 or substring(cbc:CompanyID, 1, 2) != 'DK')
[F-LIB190] schemeID = DK:CVR, CompanyID must be a valid CVR number (DK12345678)
/[]
(cbc:CompanyID/@schemeID = 'DK:CPR') and not(string-length(cbc:CompanyID) = 10)
[F-LIB191] schemeID = DK:CPR, CompanyID must be a valid CPR number (1234560000)
/[]
(not(cbc:ID) or cbc:ID = '') and (not(cbc:Name) or cbc:Name = '') and (not(cbc:Telephone) or cbc:Telephone = '') and (not(cbc:Telefax) or cbc:Telefax = '') and (not(cbc:ElectronicMail) or cbc:ElectronicMail = '') and (not(cbc:Note) or cbc:Note = '') and not(cac:OtherCommunication)
[F-LIB235] At least one field in the Contact class should be specified
/[]
cac:OtherCommunication/cbc:ChannelCode and cac:OtherCommunication/cbc:Channel
[F-LIB236] Use either ChannelCode or Channel
/[]
cac:OtherCommunication and not(normalize-space(cac:OtherCommunication/cbc:Value) != '')
[F-LIB237] Invalid Value. Must contain a value
/[]
(not(cbc:FamilyName) or cbc:FamilyName = '') and (not(cbc:FirstName) or cbc:FirstName = '')
[F-LIB024] There must be a FirstName if the FamilyName is not present
/[]
(not(cbc:ID) or cbc:ID = '') and (not(cbc:Name) or cbc:Name = '') and (not(cbc:Telephone) or cbc:Telephone = '') and (not(cbc:Telefax) or cbc:Telefax = '') and (not(cbc:ElectronicMail) or cbc:ElectronicMail = '') and (not(cbc:Note) or cbc:Note = '') and not(cac:OtherCommunication)
[F-LIB235] At least one field in the Contact class should be specified
/[]
cac:OtherCommunication/cbc:ChannelCode and cac:OtherCommunication/cbc:Channel
[F-LIB236] Use either ChannelCode or Channel
/[]
cac:OtherCommunication and not(normalize-space(cac:OtherCommunication/cbc:Value) != '')
[F-LIB237] Invalid Value. Must contain a value
/[]
(not(cbc:ID) or cbc:ID = '') and (not(cbc:Name) or cbc:Name = '') and (not(cbc:Telephone) or cbc:Telephone = '') and (not(cbc:Telefax) or cbc:Telefax = '') and (not(cbc:ElectronicMail) or cbc:ElectronicMail = '') and (not(cbc:Note) or cbc:Note = '') and not(cac:OtherCommunication)
[F-LIB235] At least one field in the Contact class should be specified
/[]
cac:OtherCommunication/cbc:ChannelCode and cac:OtherCommunication/cbc:Channel
[F-LIB236] Use either ChannelCode or Channel
/[]
cac:OtherCommunication and not(normalize-space(cac:OtherCommunication/cbc:Value) != '')
[F-LIB237] Invalid Value. Must contain a value
/[]
(not(cbc:ID) or cbc:ID = '') and (not(cbc:Name) or cbc:Name = '') and (not(cbc:Telephone) or cbc:Telephone = '') and (not(cbc:Telefax) or cbc:Telefax = '') and (not(cbc:ElectronicMail) or cbc:ElectronicMail = '') and (not(cbc:Note) or cbc:Note = '') and not(cac:OtherCommunication)
[F-LIB235] At least one field in the Contact class should be specified
/[]
cac:OtherCommunication/cbc:ChannelCode and cac:OtherCommunication/cbc:Channel
[F-LIB236] Use either ChannelCode or Channel
/[]
cac:OtherCommunication and not(normalize-space(cac:OtherCommunication/cbc:Value) != '')
[F-LIB237] Invalid Value. Must contain a value
/[]
count(cbc:DataSendingCapability) = 0
[F-INV070] DataSendingCapability element must be excluded
/[]
count(cac:Party) = 1
[F-INV071] Party class must be present
/[]
count(cbc:MarkCareIndicator) = 0
[F-LIB166] MarkCareIndicator element must be excluded
/[]
count(cbc:MarkAttentionIndicator) = 0
[F-LIB167] MarkAttentionIndicator element must be excluded
/[]
count(cac:AgentParty) = 0
[F-LIB168] AgentParty class must be excluded
/[]
count(cac:PartyLegalEntity) = 1
[F-INV075] One PartyLegalEntity class must be present
/[]
(not(cac:PartyIdentification) or cac:PartyIdentification/cbc:ID = '') and (not(cac:PartyName) or cac:PartyName/cbc:Name = '')
[F-LIB022] PartyName/Name is mandatory if PartyIdentification/ID is not found
/[]
cbc:EndpointID and not(contains($EndpointID_schemeID, concat(',',cbc:EndpointID/@schemeID,',')))
[F-LIB179] Invalid schemeID: '
'. Must be a value from the codelist: '
'
/[]
(cbc:EndpointID/@schemeID = 'DK:CVR') and (string-length(cbc:EndpointID) != 10 or substring(cbc:EndpointID, 1, 2) != 'DK')
[F-LIB180] schemeID = DK:CVR, EndpointID must be a valid CVR number (DK12345678)
/[]
(cbc:EndpointID/@schemeID = 'DK:CPR') and not(string-length(cbc:EndpointID) = 10)
[F-LIB215] schemeID = DK:CPR, EndpointID must be a valid CPR number (1234560000)
/[]
(cbc:EndpointID/@schemeID = 'GLN') and not(string-length(cbc:EndpointID) = 13)
[F-LIB181] schemeID = GLN, EndpointID must be a valid GLN number (1234567890123)
/[]
(cbc:EndpointID/@schemeID = 'EAN') and not(string-length(cbc:EndpointID) = 13)
[F-LIB216] schemeID = EAN, EndpointID must be a valid EAN number (1234567890123)
/[]
not(contains($PartyID_schemeID, concat(',',cbc:ID/@schemeID,',')))
[F-LIB183] Invalid schemeID: '
'. Must be a value from the codelist: '
'
/[]
(cbc:ID/@schemeID = 'DK:CVR') and (string-length(cbc:ID) != 10 or substring(cbc:ID, 1, 2) != 'DK')
[F-LIB184] schemeID = DK:CVR, ID must be a valid CVR number (DK12345678)
/[]
(cbc:ID/@schemeID = 'DK:CPR') and not(string-length(cbc:ID) = 10)
[F-LIB217] schemeID = DK:CPR, ID must be a valid CPR number (1234560000)
/[]
(cbc:ID/@schemeID = 'GLN') and not(string-length(cbc:ID) = 13)
[F-LIB185] schemeID = GLN, ID must be a valid GLN number (1234567890123)
/[]
(cbc:ID/@schemeID = 'EAN') and not(string-length(cbc:ID) = 13)
[F-LIB218] schemeID = EAN, ID must be a valid EAN number (1234567890123)
/[]
(cbc:ID/@schemeID = 'DK:P') and not(string-length(cbc:ID) = 10)
[F-LIB287] schemeID = DK:P, ID must be a valid P number (1234567890)
/[]
count(../cac:PartyName) > 1 and not(./cbc:Name/@languageID)
[W-LIB219] The attribute Name@languageID should be used when more than one PartyName class is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/cbc:Name/@languageID = self::*/cbc:Name/@languageID
[W-LIB220] Multilanguage error. Replicated PartyName classes with same Name@languageID attribute value
/[]
count(cbc:BlockName) = 0
[F-LIB210] BlockName element must be excluded
/[]
count(cbc:TimezoneOffset) = 0
[F-LIB211] TimezoneOffset element must be excluded
/[]
count(cac:LocationCoordinate) = 0
[F-LIB212] LocationCoordinate class must be excluded
/[]
normalize-space(cbc:AddressFormatCode) != ''
[F-LIB025] Invalid AddressFormatCode. Must contain a value
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listID = 'urn:oioubl:codelist:addresstypecode-1.1')
[F-LIB204] Invalid listID. Must be 'urn:oioubl:codelist:addresstypecode-1.1'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listAgencyID = '320')
[F-LIB205] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode = 'Home' or cbc:AddressTypeCode = 'Business' )
[F-LIB206] Invalid AddressTypeCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' or cbc:AddressFormatCode/@listID = 'UN/ECE 3477'
[F-LIB026] Invalid listID. Must be either 'urn:oioubl:codelist:addressformatcode-1.1' or 'UN/ECE 3477'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode/@listAgencyID = '320')
[F-LIB207] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode = 'StructuredDK' or cbc:AddressFormatCode = 'StructuredLax' or cbc:AddressFormatCode = 'StructuredID' or cbc:AddressFormatCode = 'StructuredRegion' or cbc:AddressFormatCode = 'Unstructured')
[F-LIB027] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode/@listAgencyID = '6')
[F-LIB208] Invalid listAgencyID. Must be '6'
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode = '1' or cbc:AddressFormatCode = '2' or cbc:AddressFormatCode = '3' or cbc:AddressFormatCode = '4' or cbc:AddressFormatCode = '5' or cbc:AddressFormatCode = '6' or cbc:AddressFormatCode = '7' or cbc:AddressFormatCode = '8' or cbc:AddressFormatCode = '9')
[F-LIB209] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cac:Country and not(cac:Country/cbc:IdentificationCode != '')
[F-LIB213] When Country is used the element Country/IdentificationCode must be filled out
/[]
(cbc:AddressFormatCode = 'Unstructured') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB031] An Unstructured address is only allowed to have AddressLine elements
/[]
(cbc:AddressFormatCode = 'StructuredDK') and cac:AddressLine
[F-LIB032] AddressLine elements not allowed for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and (not(cbc:PostalZone) or normalize-space(cbc:PostalZone) = '')
[F-LIB033] PostalZone is mandatory for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:StreetName) or normalize-space(cbc:StreetName) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB034] There should be either a StreetName or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:BuildingNumber) or normalize-space(cbc:BuildingNumber) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB035] There should be either a BuildingNumber or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredLax') and cac:AddressLine
[F-LIB036] AddressLine elements not allowed for a StructuredLax address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (not(cbc:ID) or cbc:ID = '')
[F-LIB037] ID is required for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB038] Only the ID is used for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and ((not(cac:Country/cbc:IdentificationCode) or cac:Country/cbc:IdentificationCode = '') and (not(cbc:Region) or cbc:Region = '') and (not(cbc:District) or cbc:District = ''))
[F-LIB039] Region or District or Country/IdentificationCode is required for a StructuredRegion address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0')
[F-LIB040] Only Region, District, and/or Country/IdentificationCode can be used for a StructuredRegion address type
/[]
cbc:ID and not(string-length(cbc:ID/@schemeID)>0)
[F-LIB028] When ID is used under Address the attribute schemeID is used to give an addressregister
/[]
cbc:ID and not(cbc:ID/@schemeID)
[F-LIB029] schemeID attribute must be present on an address ID
/[]
cac:Country/cbc:IdentificationCode and not(contains($CountryCode, concat(',',cac:Country/cbc:IdentificationCode,',')))
[F-LIB301] Invalid Country/IdentificationCode: '
'. Must be a value from the codelist
/[]
(not(cbc:ID) or cbc:ID = '') and (count(cac:Address) = 0)
[F-LIB221] If ID not specified, Address is mandatory
/[]
count(cbc:DurationMeasure) = 0
[F-LIB076] DurationMeasure element must be excluded
/[]
count(cbc:DescriptionCode) = 0
[F-LIB077] DescriptionCode element must be excluded
/[]
(cbc:StartTime) and (not(cbc:StartDate) or cbc:StartDate = '')
[F-LIB078] There must be a StartDate if you have a StartTime
/[]
(cbc:EndTime) and (not(cbc:EndDate) or cbc:EndDate = '')
[F-LIB079] There must be a EndDate if you have a EndTime
/[]
(cbc:StartDate and cbc:EndDate) and not(number(translate(cbc:EndDate,'-','')) > number(translate(cbc:StartDate,'-','')) or number(translate(cbc:EndDate,'-','')) = number(translate(cbc:StartDate,'-','')))
[F-LIB080] The EndDate must be greater or equal to the startdate
/[]
(cbc:StartTime and cbc:EndTime) and not(number(translate(cbc:EndTime,':','')) > number(translate(cbc:StartTime,':','')) or number(translate(cbc:EndTime,':','')) = number(translate(cbc:StartTime,':','')))
[F-LIB081] EndTime must be greater or equal to StartTime
/[]
count(../cbc:Description) > 1 and not(./@languageID)
[W-LIB222] The attribute languageID should be used when more than one Description element is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/@languageID = self::*/@languageID
[W-LIB223] Multilanguage error. Replicated Description elements with same languageID attribute value
/[]
count(cbc:BlockName) = 0
[F-LIB210] BlockName element must be excluded
/[]
count(cbc:TimezoneOffset) = 0
[F-LIB211] TimezoneOffset element must be excluded
/[]
count(cac:LocationCoordinate) = 0
[F-LIB212] LocationCoordinate class must be excluded
/[]
normalize-space(cbc:AddressFormatCode) != ''
[F-LIB025] Invalid AddressFormatCode. Must contain a value
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listID = 'urn:oioubl:codelist:addresstypecode-1.1')
[F-LIB204] Invalid listID. Must be 'urn:oioubl:codelist:addresstypecode-1.1'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listAgencyID = '320')
[F-LIB205] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode = 'Home' or cbc:AddressTypeCode = 'Business' )
[F-LIB206] Invalid AddressTypeCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' or cbc:AddressFormatCode/@listID = 'UN/ECE 3477'
[F-LIB026] Invalid listID. Must be either 'urn:oioubl:codelist:addressformatcode-1.1' or 'UN/ECE 3477'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode/@listAgencyID = '320')
[F-LIB207] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode = 'StructuredDK' or cbc:AddressFormatCode = 'StructuredLax' or cbc:AddressFormatCode = 'StructuredID' or cbc:AddressFormatCode = 'StructuredRegion' or cbc:AddressFormatCode = 'Unstructured')
[F-LIB027] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode/@listAgencyID = '6')
[F-LIB208] Invalid listAgencyID. Must be '6'
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode = '1' or cbc:AddressFormatCode = '2' or cbc:AddressFormatCode = '3' or cbc:AddressFormatCode = '4' or cbc:AddressFormatCode = '5' or cbc:AddressFormatCode = '6' or cbc:AddressFormatCode = '7' or cbc:AddressFormatCode = '8' or cbc:AddressFormatCode = '9')
[F-LIB209] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cac:Country and not(cac:Country/cbc:IdentificationCode != '')
[F-LIB213] When Country is used the element Country/IdentificationCode must be filled out
/[]
(cbc:AddressFormatCode = 'Unstructured') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB031] An Unstructured address is only allowed to have AddressLine elements
/[]
(cbc:AddressFormatCode = 'StructuredDK') and cac:AddressLine
[F-LIB032] AddressLine elements not allowed for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and (not(cbc:PostalZone) or normalize-space(cbc:PostalZone) = '')
[F-LIB033] PostalZone is mandatory for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:StreetName) or normalize-space(cbc:StreetName) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB034] There should be either a StreetName or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:BuildingNumber) or normalize-space(cbc:BuildingNumber) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB035] There should be either a BuildingNumber or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredLax') and cac:AddressLine
[F-LIB036] AddressLine elements not allowed for a StructuredLax address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (not(cbc:ID) or cbc:ID = '')
[F-LIB037] ID is required for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB038] Only the ID is used for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and ((not(cac:Country/cbc:IdentificationCode) or cac:Country/cbc:IdentificationCode = '') and (not(cbc:Region) or cbc:Region = '') and (not(cbc:District) or cbc:District = ''))
[F-LIB039] Region or District or Country/IdentificationCode is required for a StructuredRegion address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0')
[F-LIB040] Only Region, District, and/or Country/IdentificationCode can be used for a StructuredRegion address type
/[]
cbc:ID and not(string-length(cbc:ID/@schemeID)>0)
[F-LIB028] When ID is used under Address the attribute schemeID is used to give an addressregister
/[]
cbc:ID and not(cbc:ID/@schemeID)
[F-LIB029] schemeID attribute must be present on an address ID
/[]
cac:Country/cbc:IdentificationCode and not(contains($CountryCode, concat(',',cac:Country/cbc:IdentificationCode,',')))
[F-LIB301] Invalid Country/IdentificationCode: '
'. Must be a value from the codelist
/[]
count(cbc:TaxLevelCode) = 0
[F-LIB192] TaxLevelCode element must be excluded
/[]
normalize-space(cbc:CompanyID) != ''
[F-LIB193] Invalid CompanyID. Must contain a value
/[]
cbc:CompanyID/@schemeID = 'DK:SE' or cbc:CompanyID/@schemeID = 'ZZZ'
[F-LIB195] Invalid schemeID. Must be a valid scheme for PartyTaxScheme/CompanyID
/[]
(cbc:CompanyID/@schemeID = 'DK:SE') and (string-length(normalize-space(cbc:CompanyID)) != 10 or substring(cbc:CompanyID, 1, 2) != 'DK')
[F-LIB196] schemeID = DK:SE, CompanyID must be a valid SE number (DK12345678)
/[]
count(cac:JurisdictionRegionAddress/cbc:ID) = 0
[F-LIB041] ID element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:AddressTypeCode) = 0
[F-LIB042] AddressTypeCode element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Postbox) = 0
[F-LIB043] Postbox element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Floor) = 0
[F-LIB044] Floor element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Room) = 0
[F-LIB045] Room element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:StreetName) = 0
[F-LIB046] StreetName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:AdditionalStreetName) = 0
[F-LIB047] AdditionalStreetName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BlockName) = 0
[F-LIB048] BlockName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BuildingName) = 0
[F-LIB049] BuildingName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BuildingNumber) = 0
[F-LIB050] BuildingNumber element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:InhouseMail) = 0
[F-LIB051] InhouseMail element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Department) = 0
[F-LIB052] Department element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:MarkAttention) = 0
[F-LIB053] MarkAttention element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:MarkCare) = 0
[F-LIB054] MarkCare element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:PlotIdentification) = 0
[F-LIB055] PlotIdentification element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CitySubdivisionName) = 0
[F-LIB056] CitySubdivisionName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CityName) = 0
[F-LIB057] CityName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:PostalZone) = 0
[F-LIB058] PostalZone element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CountrySubentity) = 0
[F-LIB059] CountrySubentity element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CountrySubentityCode) = 0
[F-LIB060] CountrySubentityCode element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:TimezoneOffset) = 0
[F-LIB063] TimezoneOffset element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cac:AddressLine) = 0
[F-LIB234] AddressLine class must be excluded
/[]
count(cac:JurisdictionRegionAddress/cac:LocationCoordinate) = 0
[F-LIB064] LocationCoordinate class must be excluded
/[]
(cbc:ID = '63') and cbc:TaxTypeCode
[F-LIB067] TaxTypeCode is not allowed when TaxScheme/ID equals '63' (Moms)
/[]
normalize-space(cbc:ID) != ''
[F-LIB065] Invalid TaxScheme/ID. Must contain a value.
/[]
normalize-space(cbc:Name) != ''
[F-LIB066] Invalid Name. Must contain a value
/[]
not((cbc:ID = '63' or cbc:ID = 'VAT')) and not(contains($TaxType2, concat(',',cbc:TaxTypeCode,',')))
[F-LIB197] TaxTypeCode must be a value from the '
' codelist when TaxScheme/ID is different from '63' or 'VAT' (Moms)
/[]
cbc:ID/@schemeID = $TaxScheme_schemeID or cbc:ID/@schemeID = $TaxScheme2_schemeID or cbc:ID/@schemeID = $TaxScheme4_schemeID
[F-LIB070] Invalid schemeID. Must be '
' or '
' or '
'
/[]
(cbc:TaxTypeCode) and not((cbc:TaxTypeCode/@listID = $TaxType_listID) or (cbc:TaxTypeCode/@listID = $TaxType_listID2))
[F-LIB071] Invalid listID. Must be '
' or '
'
/[]
(cbc:ID = '63') and cbc:Name != 'Moms'
[F-LIB198] Name must equal 'Moms' when TaxScheme/ID equals '63' (Moms)
/[]
(cbc:ID != '63') and cbc:Name = 'Moms'
[F-LIB199] Name must correspond to the value of TaxScheme/ID
/[]
(cac:JurisdictionRegionAddress/cac:Country/cbc:IdentificationCode) and not(contains($CountryCode, concat(',',cac:JurisdictionRegionAddress/cac:Country/cbc:IdentificationCode,',')))
[F-LIB337] Invalid Country/IdentificationCode: '
'. Must be a value from the country codelist
/[]
(cac:JurisdictionRegionAddress) and cac:JurisdictionRegionAddress/cbc:AddressFormatCode != 'StructuredRegion'
[F-LIB233] The AddressFormatCode under JurisdictionRegionAddress must always equal 'StructuredRegion'
/[]
count(cac:CorporateRegistrationScheme) = 0
[F-LIB186] CorporateRegistrationScheme class must be excluded
/[]
normalize-space(cbc:CompanyID) != ''
[F-LIB187] Invalid CompanyID. Must contain a value
/[]
cbc:CompanyID/@schemeID = 'DK:CVR' or cbc:CompanyID/@schemeID = 'DK:CPR' or cbc:CompanyID/@schemeID = 'ZZZ'
[F-LIB189] Invalid schemeID. Must be a valid scheme for PartyLegalEntity/CompanyID
/[]
(cbc:CompanyID/@schemeID = 'DK:CVR') and (string-length(normalize-space(cbc:CompanyID)) != 10 or substring(cbc:CompanyID, 1, 2) != 'DK')
[F-LIB190] schemeID = DK:CVR, CompanyID must be a valid CVR number (DK12345678)
/[]
(cbc:CompanyID/@schemeID = 'DK:CPR') and not(string-length(cbc:CompanyID) = 10)
[F-LIB191] schemeID = DK:CPR, CompanyID must be a valid CPR number (1234560000)
/[]
(not(cbc:ID) or cbc:ID = '') and (not(cbc:Name) or cbc:Name = '') and (not(cbc:Telephone) or cbc:Telephone = '') and (not(cbc:Telefax) or cbc:Telefax = '') and (not(cbc:ElectronicMail) or cbc:ElectronicMail = '') and (not(cbc:Note) or cbc:Note = '') and not(cac:OtherCommunication)
[F-LIB235] At least one field in the Contact class should be specified
/[]
cac:OtherCommunication/cbc:ChannelCode and cac:OtherCommunication/cbc:Channel
[F-LIB236] Use either ChannelCode or Channel
/[]
cac:OtherCommunication and not(normalize-space(cac:OtherCommunication/cbc:Value) != '')
[F-LIB237] Invalid Value. Must contain a value
/[]
(not(cbc:FamilyName) or cbc:FamilyName = '') and (not(cbc:FirstName) or cbc:FirstName = '')
[F-LIB024] There must be a FirstName if the FamilyName is not present
/[]
(not(cbc:ID) or cbc:ID = '') and (not(cbc:Name) or cbc:Name = '') and (not(cbc:Telephone) or cbc:Telephone = '') and (not(cbc:Telefax) or cbc:Telefax = '') and (not(cbc:ElectronicMail) or cbc:ElectronicMail = '') and (not(cbc:Note) or cbc:Note = '') and not(cac:OtherCommunication)
[F-LIB235] At least one field in the Contact class should be specified
/[]
cac:OtherCommunication/cbc:ChannelCode and cac:OtherCommunication/cbc:Channel
[F-LIB236] Use either ChannelCode or Channel
/[]
cac:OtherCommunication and not(normalize-space(cac:OtherCommunication/cbc:Value) != '')
[F-LIB237] Invalid Value. Must contain a value
/[]
(not(cbc:ID) or cbc:ID = '') and (not(cbc:Name) or cbc:Name = '') and (not(cbc:Telephone) or cbc:Telephone = '') and (not(cbc:Telefax) or cbc:Telefax = '') and (not(cbc:ElectronicMail) or cbc:ElectronicMail = '') and (not(cbc:Note) or cbc:Note = '') and not(cac:OtherCommunication)
[F-LIB235] At least one field in the Contact class should be specified
/[]
cac:OtherCommunication/cbc:ChannelCode and cac:OtherCommunication/cbc:Channel
[F-LIB236] Use either ChannelCode or Channel
/[]
cac:OtherCommunication and not(normalize-space(cac:OtherCommunication/cbc:Value) != '')
[F-LIB237] Invalid Value. Must contain a value
/[]
(not(cbc:ID) or cbc:ID = '') and (not(cbc:Name) or cbc:Name = '') and (not(cbc:Telephone) or cbc:Telephone = '') and (not(cbc:Telefax) or cbc:Telefax = '') and (not(cbc:ElectronicMail) or cbc:ElectronicMail = '') and (not(cbc:Note) or cbc:Note = '') and not(cac:OtherCommunication)
[F-LIB235] At least one field in the Contact class should be specified
/[]
cac:OtherCommunication/cbc:ChannelCode and cac:OtherCommunication/cbc:Channel
[F-LIB236] Use either ChannelCode or Channel
/[]
cac:OtherCommunication and not(normalize-space(cac:OtherCommunication/cbc:Value) != '')
[F-LIB237] Invalid Value. Must contain a value
/[]
count(cbc:ID) = 0
[F-INV082] ID element must be excluded
/[]
count(cbc:Quantity) = 0
[F-INV083] Quantity element must be excluded
/[]
count(cbc:MinimumQuantity) = 0
[F-INV084] MinimumQuantity element must be excluded
/[]
count(cbc:MaximumQuantity) = 0
[F-INV085] MaximumQuantity element must be excluded
/[]
count(cbc:ActualDeliveryTime) = 0
[F-INV086] ActualDeliveryTime element must be excluded
/[]
count(cbc:LatestDeliveryDate) = 0
[F-INV087] LatestDeliveryDate element must be excluded
/[]
count(cbc:LatestDeliveryTime) = 0
[F-INV088] LatestDeliveryTime element must be excluded
/[]
count(cac:DeliveryAddress) = 0
[F-INV238] DeliveryAddress class must be excluded
/[]
count(cac:PromisedDeliveryPeriod) = 0
[F-INV089] PromisedDeliveryPeriod class must be excluded
/[]
count(cac:EstimatedDeliveryPeriod) = 0
[F-INV090] EstimatedDeliveryPeriod class must be excluded
/[]
not(cbc:ID) and not(cac:Address)
[F-INV239] Address is mandatory when ID is not specified
/[]
count(cbc:DurationMeasure) = 0
[F-LIB076] DurationMeasure element must be excluded
/[]
count(cbc:DescriptionCode) = 0
[F-LIB077] DescriptionCode element must be excluded
/[]
(cbc:StartTime) and (not(cbc:StartDate) or cbc:StartDate = '')
[F-LIB078] There must be a StartDate if you have a StartTime
/[]
(cbc:EndTime) and (not(cbc:EndDate) or cbc:EndDate = '')
[F-LIB079] There must be a EndDate if you have a EndTime
/[]
(cbc:StartDate and cbc:EndDate) and not(number(translate(cbc:EndDate,'-','')) > number(translate(cbc:StartDate,'-','')) or number(translate(cbc:EndDate,'-','')) = number(translate(cbc:StartDate,'-','')))
[F-LIB080] The EndDate must be greater or equal to the startdate
/[]
(cbc:StartTime and cbc:EndTime) and not(number(translate(cbc:EndTime,':','')) > number(translate(cbc:StartTime,':','')) or number(translate(cbc:EndTime,':','')) = number(translate(cbc:StartTime,':','')))
[F-LIB081] EndTime must be greater or equal to StartTime
/[]
count(../cbc:Description) > 1 and not(./@languageID)
[W-LIB222] The attribute languageID should be used when more than one Description element is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/@languageID = self::*/@languageID
[W-LIB223] Multilanguage error. Replicated Description elements with same languageID attribute value
/[]
count(cbc:BlockName) = 0
[F-LIB210] BlockName element must be excluded
/[]
count(cbc:TimezoneOffset) = 0
[F-LIB211] TimezoneOffset element must be excluded
/[]
count(cac:LocationCoordinate) = 0
[F-LIB212] LocationCoordinate class must be excluded
/[]
normalize-space(cbc:AddressFormatCode) != ''
[F-LIB025] Invalid AddressFormatCode. Must contain a value
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listID = 'urn:oioubl:codelist:addresstypecode-1.1')
[F-LIB204] Invalid listID. Must be 'urn:oioubl:codelist:addresstypecode-1.1'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listAgencyID = '320')
[F-LIB205] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode = 'Home' or cbc:AddressTypeCode = 'Business' )
[F-LIB206] Invalid AddressTypeCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' or cbc:AddressFormatCode/@listID = 'UN/ECE 3477'
[F-LIB026] Invalid listID. Must be either 'urn:oioubl:codelist:addressformatcode-1.1' or 'UN/ECE 3477'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode/@listAgencyID = '320')
[F-LIB207] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode = 'StructuredDK' or cbc:AddressFormatCode = 'StructuredLax' or cbc:AddressFormatCode = 'StructuredID' or cbc:AddressFormatCode = 'StructuredRegion' or cbc:AddressFormatCode = 'Unstructured')
[F-LIB027] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode/@listAgencyID = '6')
[F-LIB208] Invalid listAgencyID. Must be '6'
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode = '1' or cbc:AddressFormatCode = '2' or cbc:AddressFormatCode = '3' or cbc:AddressFormatCode = '4' or cbc:AddressFormatCode = '5' or cbc:AddressFormatCode = '6' or cbc:AddressFormatCode = '7' or cbc:AddressFormatCode = '8' or cbc:AddressFormatCode = '9')
[F-LIB209] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cac:Country and not(cac:Country/cbc:IdentificationCode != '')
[F-LIB213] When Country is used the element Country/IdentificationCode must be filled out
/[]
(cbc:AddressFormatCode = 'Unstructured') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB031] An Unstructured address is only allowed to have AddressLine elements
/[]
(cbc:AddressFormatCode = 'StructuredDK') and cac:AddressLine
[F-LIB032] AddressLine elements not allowed for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and (not(cbc:PostalZone) or normalize-space(cbc:PostalZone) = '')
[F-LIB033] PostalZone is mandatory for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:StreetName) or normalize-space(cbc:StreetName) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB034] There should be either a StreetName or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:BuildingNumber) or normalize-space(cbc:BuildingNumber) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB035] There should be either a BuildingNumber or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredLax') and cac:AddressLine
[F-LIB036] AddressLine elements not allowed for a StructuredLax address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (not(cbc:ID) or cbc:ID = '')
[F-LIB037] ID is required for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB038] Only the ID is used for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and ((not(cac:Country/cbc:IdentificationCode) or cac:Country/cbc:IdentificationCode = '') and (not(cbc:Region) or cbc:Region = '') and (not(cbc:District) or cbc:District = ''))
[F-LIB039] Region or District or Country/IdentificationCode is required for a StructuredRegion address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0')
[F-LIB040] Only Region, District, and/or Country/IdentificationCode can be used for a StructuredRegion address type
/[]
cbc:ID and not(string-length(cbc:ID/@schemeID)>0)
[F-LIB028] When ID is used under Address the attribute schemeID is used to give an addressregister
/[]
cbc:ID and not(cbc:ID/@schemeID)
[F-LIB029] schemeID attribute must be present on an address ID
/[]
cac:Country/cbc:IdentificationCode and not(contains($CountryCode, concat(',',cac:Country/cbc:IdentificationCode,',')))
[F-LIB301] Invalid Country/IdentificationCode: '
'. Must be a value from the codelist
/[]
count(cbc:DurationMeasure) = 0
[F-LIB076] DurationMeasure element must be excluded
/[]
count(cbc:DescriptionCode) = 0
[F-LIB077] DescriptionCode element must be excluded
/[]
(cbc:StartTime) and (not(cbc:StartDate) or cbc:StartDate = '')
[F-LIB078] There must be a StartDate if you have a StartTime
/[]
(cbc:EndTime) and (not(cbc:EndDate) or cbc:EndDate = '')
[F-LIB079] There must be a EndDate if you have a EndTime
/[]
(cbc:StartDate and cbc:EndDate) and not(number(translate(cbc:EndDate,'-','')) > number(translate(cbc:StartDate,'-','')) or number(translate(cbc:EndDate,'-','')) = number(translate(cbc:StartDate,'-','')))
[F-LIB080] The EndDate must be greater or equal to the startdate
/[]
(cbc:StartTime and cbc:EndTime) and not(number(translate(cbc:EndTime,':','')) > number(translate(cbc:StartTime,':','')) or number(translate(cbc:EndTime,':','')) = number(translate(cbc:StartTime,':','')))
[F-LIB081] EndTime must be greater or equal to StartTime
/[]
count(../cbc:Description) > 1 and not(./@languageID)
[W-LIB222] The attribute languageID should be used when more than one Description element is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/@languageID = self::*/@languageID
[W-LIB223] Multilanguage error. Replicated Description elements with same languageID attribute value
/[]
count(cbc:MarkCareIndicator) = 0
[F-LIB166] MarkCareIndicator element must be excluded
/[]
count(cbc:MarkAttentionIndicator) = 0
[F-LIB167] MarkAttentionIndicator element must be excluded
/[]
count(cac:AgentParty) = 0
[F-LIB168] AgentParty class must be excluded
/[]
(not(cac:PartyIdentification) or cac:PartyIdentification/cbc:ID = '') and (not(cac:PartyName) or cac:PartyName/cbc:Name = '')
[F-LIB022] PartyName/Name is mandatory if PartyIdentification/ID is not found
/[]
cbc:EndpointID and not(contains($EndpointID_schemeID, concat(',',cbc:EndpointID/@schemeID,',')))
[F-LIB179] Invalid schemeID: '
'. Must be a value from the codelist: '
'
/[]
(cbc:EndpointID/@schemeID = 'DK:CVR') and (string-length(cbc:EndpointID) != 10 or substring(cbc:EndpointID, 1, 2) != 'DK')
[F-LIB180] schemeID = DK:CVR, EndpointID must be a valid CVR number (DK12345678)
/[]
(cbc:EndpointID/@schemeID = 'DK:CPR') and not(string-length(cbc:EndpointID) = 10)
[F-LIB215] schemeID = DK:CPR, EndpointID must be a valid CPR number (1234560000)
/[]
(cbc:EndpointID/@schemeID = 'GLN') and not(string-length(cbc:EndpointID) = 13)
[F-LIB181] schemeID = GLN, EndpointID must be a valid GLN number (1234567890123)
/[]
(cbc:EndpointID/@schemeID = 'EAN') and not(string-length(cbc:EndpointID) = 13)
[F-LIB216] schemeID = EAN, EndpointID must be a valid EAN number (1234567890123)
/[]
count(cac:PartyLegalEntity) > 1
[F-INV299] No more than one PartyLegalEntity class may be present
/[]
not(contains($PartyID_schemeID, concat(',',cbc:ID/@schemeID,',')))
[F-LIB183] Invalid schemeID: '
'. Must be a value from the codelist: '
'
/[]
(cbc:ID/@schemeID = 'DK:CVR') and (string-length(cbc:ID) != 10 or substring(cbc:ID, 1, 2) != 'DK')
[F-LIB184] schemeID = DK:CVR, ID must be a valid CVR number (DK12345678)
/[]
(cbc:ID/@schemeID = 'DK:CPR') and not(string-length(cbc:ID) = 10)
[F-LIB217] schemeID = DK:CPR, ID must be a valid CPR number (1234560000)
/[]
(cbc:ID/@schemeID = 'GLN') and not(string-length(cbc:ID) = 13)
[F-LIB185] schemeID = GLN, ID must be a valid GLN number (1234567890123)
/[]
(cbc:ID/@schemeID = 'EAN') and not(string-length(cbc:ID) = 13)
[F-LIB218] schemeID = EAN, ID must be a valid EAN number (1234567890123)
/[]
(cbc:ID/@schemeID = 'DK:P') and not(string-length(cbc:ID) = 10)
[F-LIB287] schemeID = DK:P, ID must be a valid P number (1234567890)
/[]
count(../cac:PartyName) > 1 and not(./cbc:Name/@languageID)
[W-LIB219] The attribute Name@languageID should be used when more than one PartyName class is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/cbc:Name/@languageID = self::*/cbc:Name/@languageID
[W-LIB220] Multilanguage error. Replicated PartyName classes with same Name@languageID attribute value
/[]
count(cbc:BlockName) = 0
[F-LIB210] BlockName element must be excluded
/[]
count(cbc:TimezoneOffset) = 0
[F-LIB211] TimezoneOffset element must be excluded
/[]
count(cac:LocationCoordinate) = 0
[F-LIB212] LocationCoordinate class must be excluded
/[]
normalize-space(cbc:AddressFormatCode) != ''
[F-LIB025] Invalid AddressFormatCode. Must contain a value
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listID = 'urn:oioubl:codelist:addresstypecode-1.1')
[F-LIB204] Invalid listID. Must be 'urn:oioubl:codelist:addresstypecode-1.1'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listAgencyID = '320')
[F-LIB205] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode = 'Home' or cbc:AddressTypeCode = 'Business' )
[F-LIB206] Invalid AddressTypeCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' or cbc:AddressFormatCode/@listID = 'UN/ECE 3477'
[F-LIB026] Invalid listID. Must be either 'urn:oioubl:codelist:addressformatcode-1.1' or 'UN/ECE 3477'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode/@listAgencyID = '320')
[F-LIB207] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode = 'StructuredDK' or cbc:AddressFormatCode = 'StructuredLax' or cbc:AddressFormatCode = 'StructuredID' or cbc:AddressFormatCode = 'StructuredRegion' or cbc:AddressFormatCode = 'Unstructured')
[F-LIB027] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode/@listAgencyID = '6')
[F-LIB208] Invalid listAgencyID. Must be '6'
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode = '1' or cbc:AddressFormatCode = '2' or cbc:AddressFormatCode = '3' or cbc:AddressFormatCode = '4' or cbc:AddressFormatCode = '5' or cbc:AddressFormatCode = '6' or cbc:AddressFormatCode = '7' or cbc:AddressFormatCode = '8' or cbc:AddressFormatCode = '9')
[F-LIB209] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cac:Country and not(cac:Country/cbc:IdentificationCode != '')
[F-LIB213] When Country is used the element Country/IdentificationCode must be filled out
/[]
(cbc:AddressFormatCode = 'Unstructured') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB031] An Unstructured address is only allowed to have AddressLine elements
/[]
(cbc:AddressFormatCode = 'StructuredDK') and cac:AddressLine
[F-LIB032] AddressLine elements not allowed for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and (not(cbc:PostalZone) or normalize-space(cbc:PostalZone) = '')
[F-LIB033] PostalZone is mandatory for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:StreetName) or normalize-space(cbc:StreetName) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB034] There should be either a StreetName or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:BuildingNumber) or normalize-space(cbc:BuildingNumber) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB035] There should be either a BuildingNumber or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredLax') and cac:AddressLine
[F-LIB036] AddressLine elements not allowed for a StructuredLax address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (not(cbc:ID) or cbc:ID = '')
[F-LIB037] ID is required for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB038] Only the ID is used for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and ((not(cac:Country/cbc:IdentificationCode) or cac:Country/cbc:IdentificationCode = '') and (not(cbc:Region) or cbc:Region = '') and (not(cbc:District) or cbc:District = ''))
[F-LIB039] Region or District or Country/IdentificationCode is required for a StructuredRegion address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0')
[F-LIB040] Only Region, District, and/or Country/IdentificationCode can be used for a StructuredRegion address type
/[]
cbc:ID and not(string-length(cbc:ID/@schemeID)>0)
[F-LIB028] When ID is used under Address the attribute schemeID is used to give an addressregister
/[]
cbc:ID and not(cbc:ID/@schemeID)
[F-LIB029] schemeID attribute must be present on an address ID
/[]
cac:Country/cbc:IdentificationCode and not(contains($CountryCode, concat(',',cac:Country/cbc:IdentificationCode,',')))
[F-LIB301] Invalid Country/IdentificationCode: '
'. Must be a value from the codelist
/[]
(not(cbc:ID) or cbc:ID = '') and (count(cac:Address) = 0)
[F-LIB221] If ID not specified, Address is mandatory
/[]
count(cbc:DurationMeasure) = 0
[F-LIB076] DurationMeasure element must be excluded
/[]
count(cbc:DescriptionCode) = 0
[F-LIB077] DescriptionCode element must be excluded
/[]
(cbc:StartTime) and (not(cbc:StartDate) or cbc:StartDate = '')
[F-LIB078] There must be a StartDate if you have a StartTime
/[]
(cbc:EndTime) and (not(cbc:EndDate) or cbc:EndDate = '')
[F-LIB079] There must be a EndDate if you have a EndTime
/[]
(cbc:StartDate and cbc:EndDate) and not(number(translate(cbc:EndDate,'-','')) > number(translate(cbc:StartDate,'-','')) or number(translate(cbc:EndDate,'-','')) = number(translate(cbc:StartDate,'-','')))
[F-LIB080] The EndDate must be greater or equal to the startdate
/[]
(cbc:StartTime and cbc:EndTime) and not(number(translate(cbc:EndTime,':','')) > number(translate(cbc:StartTime,':','')) or number(translate(cbc:EndTime,':','')) = number(translate(cbc:StartTime,':','')))
[F-LIB081] EndTime must be greater or equal to StartTime
/[]
count(../cbc:Description) > 1 and not(./@languageID)
[W-LIB222] The attribute languageID should be used when more than one Description element is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/@languageID = self::*/@languageID
[W-LIB223] Multilanguage error. Replicated Description elements with same languageID attribute value
/[]
count(cbc:BlockName) = 0
[F-LIB210] BlockName element must be excluded
/[]
count(cbc:TimezoneOffset) = 0
[F-LIB211] TimezoneOffset element must be excluded
/[]
count(cac:LocationCoordinate) = 0
[F-LIB212] LocationCoordinate class must be excluded
/[]
normalize-space(cbc:AddressFormatCode) != ''
[F-LIB025] Invalid AddressFormatCode. Must contain a value
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listID = 'urn:oioubl:codelist:addresstypecode-1.1')
[F-LIB204] Invalid listID. Must be 'urn:oioubl:codelist:addresstypecode-1.1'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listAgencyID = '320')
[F-LIB205] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode = 'Home' or cbc:AddressTypeCode = 'Business' )
[F-LIB206] Invalid AddressTypeCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' or cbc:AddressFormatCode/@listID = 'UN/ECE 3477'
[F-LIB026] Invalid listID. Must be either 'urn:oioubl:codelist:addressformatcode-1.1' or 'UN/ECE 3477'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode/@listAgencyID = '320')
[F-LIB207] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode = 'StructuredDK' or cbc:AddressFormatCode = 'StructuredLax' or cbc:AddressFormatCode = 'StructuredID' or cbc:AddressFormatCode = 'StructuredRegion' or cbc:AddressFormatCode = 'Unstructured')
[F-LIB027] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode/@listAgencyID = '6')
[F-LIB208] Invalid listAgencyID. Must be '6'
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode = '1' or cbc:AddressFormatCode = '2' or cbc:AddressFormatCode = '3' or cbc:AddressFormatCode = '4' or cbc:AddressFormatCode = '5' or cbc:AddressFormatCode = '6' or cbc:AddressFormatCode = '7' or cbc:AddressFormatCode = '8' or cbc:AddressFormatCode = '9')
[F-LIB209] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cac:Country and not(cac:Country/cbc:IdentificationCode != '')
[F-LIB213] When Country is used the element Country/IdentificationCode must be filled out
/[]
(cbc:AddressFormatCode = 'Unstructured') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB031] An Unstructured address is only allowed to have AddressLine elements
/[]
(cbc:AddressFormatCode = 'StructuredDK') and cac:AddressLine
[F-LIB032] AddressLine elements not allowed for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and (not(cbc:PostalZone) or normalize-space(cbc:PostalZone) = '')
[F-LIB033] PostalZone is mandatory for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:StreetName) or normalize-space(cbc:StreetName) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB034] There should be either a StreetName or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:BuildingNumber) or normalize-space(cbc:BuildingNumber) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB035] There should be either a BuildingNumber or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredLax') and cac:AddressLine
[F-LIB036] AddressLine elements not allowed for a StructuredLax address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (not(cbc:ID) or cbc:ID = '')
[F-LIB037] ID is required for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB038] Only the ID is used for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and ((not(cac:Country/cbc:IdentificationCode) or cac:Country/cbc:IdentificationCode = '') and (not(cbc:Region) or cbc:Region = '') and (not(cbc:District) or cbc:District = ''))
[F-LIB039] Region or District or Country/IdentificationCode is required for a StructuredRegion address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0')
[F-LIB040] Only Region, District, and/or Country/IdentificationCode can be used for a StructuredRegion address type
/[]
cbc:ID and not(string-length(cbc:ID/@schemeID)>0)
[F-LIB028] When ID is used under Address the attribute schemeID is used to give an addressregister
/[]
cbc:ID and not(cbc:ID/@schemeID)
[F-LIB029] schemeID attribute must be present on an address ID
/[]
cac:Country/cbc:IdentificationCode and not(contains($CountryCode, concat(',',cac:Country/cbc:IdentificationCode,',')))
[F-LIB301] Invalid Country/IdentificationCode: '
'. Must be a value from the codelist
/[]
count(cbc:TaxLevelCode) = 0
[F-LIB192] TaxLevelCode element must be excluded
/[]
normalize-space(cbc:CompanyID) != ''
[F-LIB193] Invalid CompanyID. Must contain a value
/[]
cbc:CompanyID/@schemeID = 'DK:SE' or cbc:CompanyID/@schemeID = 'ZZZ'
[F-LIB195] Invalid schemeID. Must be a valid scheme for PartyTaxScheme/CompanyID
/[]
(cbc:CompanyID/@schemeID = 'DK:SE') and (string-length(normalize-space(cbc:CompanyID)) != 10 or substring(cbc:CompanyID, 1, 2) != 'DK')
[F-LIB196] schemeID = DK:SE, CompanyID must be a valid SE number (DK12345678)
/[]
count(cac:JurisdictionRegionAddress/cbc:ID) = 0
[F-LIB041] ID element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:AddressTypeCode) = 0
[F-LIB042] AddressTypeCode element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Postbox) = 0
[F-LIB043] Postbox element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Floor) = 0
[F-LIB044] Floor element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Room) = 0
[F-LIB045] Room element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:StreetName) = 0
[F-LIB046] StreetName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:AdditionalStreetName) = 0
[F-LIB047] AdditionalStreetName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BlockName) = 0
[F-LIB048] BlockName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BuildingName) = 0
[F-LIB049] BuildingName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BuildingNumber) = 0
[F-LIB050] BuildingNumber element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:InhouseMail) = 0
[F-LIB051] InhouseMail element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Department) = 0
[F-LIB052] Department element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:MarkAttention) = 0
[F-LIB053] MarkAttention element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:MarkCare) = 0
[F-LIB054] MarkCare element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:PlotIdentification) = 0
[F-LIB055] PlotIdentification element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CitySubdivisionName) = 0
[F-LIB056] CitySubdivisionName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CityName) = 0
[F-LIB057] CityName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:PostalZone) = 0
[F-LIB058] PostalZone element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CountrySubentity) = 0
[F-LIB059] CountrySubentity element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CountrySubentityCode) = 0
[F-LIB060] CountrySubentityCode element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:TimezoneOffset) = 0
[F-LIB063] TimezoneOffset element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cac:AddressLine) = 0
[F-LIB234] AddressLine class must be excluded
/[]
count(cac:JurisdictionRegionAddress/cac:LocationCoordinate) = 0
[F-LIB064] LocationCoordinate class must be excluded
/[]
(cbc:ID = '63') and cbc:TaxTypeCode
[F-LIB067] TaxTypeCode is not allowed when TaxScheme/ID equals '63' (Moms)
/[]
normalize-space(cbc:ID) != ''
[F-LIB065] Invalid TaxScheme/ID. Must contain a value.
/[]
normalize-space(cbc:Name) != ''
[F-LIB066] Invalid Name. Must contain a value
/[]
not((cbc:ID = '63' or cbc:ID = 'VAT')) and not(contains($TaxType2, concat(',',cbc:TaxTypeCode,',')))
[F-LIB197] TaxTypeCode must be a value from the '
' codelist when TaxScheme/ID is different from '63' or 'VAT' (Moms)
/[]
cbc:ID/@schemeID = $TaxScheme_schemeID or cbc:ID/@schemeID = $TaxScheme2_schemeID or cbc:ID/@schemeID = $TaxScheme4_schemeID
[F-LIB070] Invalid schemeID. Must be '
' or '
' or '
'
/[]
(cbc:TaxTypeCode) and not((cbc:TaxTypeCode/@listID = $TaxType_listID) or (cbc:TaxTypeCode/@listID = $TaxType_listID2))
[F-LIB071] Invalid listID. Must be '
' or '
'
/[]
(cbc:ID = '63') and cbc:Name != 'Moms'
[F-LIB198] Name must equal 'Moms' when TaxScheme/ID equals '63' (Moms)
/[]
(cbc:ID != '63') and cbc:Name = 'Moms'
[F-LIB199] Name must correspond to the value of TaxScheme/ID
/[]
(cac:JurisdictionRegionAddress/cac:Country/cbc:IdentificationCode) and not(contains($CountryCode, concat(',',cac:JurisdictionRegionAddress/cac:Country/cbc:IdentificationCode,',')))
[F-LIB337] Invalid Country/IdentificationCode: '
'. Must be a value from the country codelist
/[]
(cac:JurisdictionRegionAddress) and cac:JurisdictionRegionAddress/cbc:AddressFormatCode != 'StructuredRegion'
[F-LIB233] The AddressFormatCode under JurisdictionRegionAddress must always equal 'StructuredRegion'
/[]
count(cac:CorporateRegistrationScheme) = 0
[F-LIB186] CorporateRegistrationScheme class must be excluded
/[]
normalize-space(cbc:CompanyID) != ''
[F-LIB187] Invalid CompanyID. Must contain a value
/[]
cbc:CompanyID/@schemeID = 'DK:CVR' or cbc:CompanyID/@schemeID = 'DK:CPR' or cbc:CompanyID/@schemeID = 'ZZZ'
[F-LIB189] Invalid schemeID. Must be a valid scheme for PartyLegalEntity/CompanyID
/[]
(cbc:CompanyID/@schemeID = 'DK:CVR') and (string-length(normalize-space(cbc:CompanyID)) != 10 or substring(cbc:CompanyID, 1, 2) != 'DK')
[F-LIB190] schemeID = DK:CVR, CompanyID must be a valid CVR number (DK12345678)
/[]
(cbc:CompanyID/@schemeID = 'DK:CPR') and not(string-length(cbc:CompanyID) = 10)
[F-LIB191] schemeID = DK:CPR, CompanyID must be a valid CPR number (1234560000)
/[]
(not(cbc:ID) or cbc:ID = '') and (not(cbc:Name) or cbc:Name = '') and (not(cbc:Telephone) or cbc:Telephone = '') and (not(cbc:Telefax) or cbc:Telefax = '') and (not(cbc:ElectronicMail) or cbc:ElectronicMail = '') and (not(cbc:Note) or cbc:Note = '') and not(cac:OtherCommunication)
[F-LIB235] At least one field in the Contact class should be specified
/[]
cac:OtherCommunication/cbc:ChannelCode and cac:OtherCommunication/cbc:Channel
[F-LIB236] Use either ChannelCode or Channel
/[]
cac:OtherCommunication and not(normalize-space(cac:OtherCommunication/cbc:Value) != '')
[F-LIB237] Invalid Value. Must contain a value
/[]
(not(cbc:FamilyName) or cbc:FamilyName = '') and (not(cbc:FirstName) or cbc:FirstName = '')
[F-LIB024] There must be a FirstName if the FamilyName is not present
/[]
count(cac:AllowanceCharge) = 0
[F-INV101] AllowanceCharge class must be excluded
/[]
cbc:ID and cbc:SpecialTerms
[F-INV102] Use either ID or SpecialTerms
/[]
cbc:ID and not(cbc:ID = 'Incoterms' or cbc:ID = 'INCOTERMS')
[W-INV301] If used, use INCO terms (ID = 'INCOTERMS')
/[]
cbc:LossRiskResponsibilityCode and cbc:LossRisk
[F-INV103] Use either LossRiskResponsibilityCode or LossRisk
/[]
normalize-space(cbc:ID) != ''
[F-INV302] Invalid DeliveryTerms/DeliveryLocation/ID. Must contain a value.
/[]
count(cbc:DurationMeasure) = 0
[F-LIB076] DurationMeasure element must be excluded
/[]
count(cbc:DescriptionCode) = 0
[F-LIB077] DescriptionCode element must be excluded
/[]
(cbc:StartTime) and (not(cbc:StartDate) or cbc:StartDate = '')
[F-LIB078] There must be a StartDate if you have a StartTime
/[]
(cbc:EndTime) and (not(cbc:EndDate) or cbc:EndDate = '')
[F-LIB079] There must be a EndDate if you have a EndTime
/[]
(cbc:StartDate and cbc:EndDate) and not(number(translate(cbc:EndDate,'-','')) > number(translate(cbc:StartDate,'-','')) or number(translate(cbc:EndDate,'-','')) = number(translate(cbc:StartDate,'-','')))
[F-LIB080] The EndDate must be greater or equal to the startdate
/[]
(cbc:StartTime and cbc:EndTime) and not(number(translate(cbc:EndTime,':','')) > number(translate(cbc:StartTime,':','')) or number(translate(cbc:EndTime,':','')) = number(translate(cbc:StartTime,':','')))
[F-LIB081] EndTime must be greater or equal to StartTime
/[]
count(../cbc:Description) > 1 and not(./@languageID)
[W-LIB222] The attribute languageID should be used when more than one Description element is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/@languageID = self::*/@languageID
[W-LIB223] Multilanguage error. Replicated Description elements with same languageID attribute value
/[]
count(cbc:BlockName) = 0
[F-LIB210] BlockName element must be excluded
/[]
count(cbc:TimezoneOffset) = 0
[F-LIB211] TimezoneOffset element must be excluded
/[]
count(cac:LocationCoordinate) = 0
[F-LIB212] LocationCoordinate class must be excluded
/[]
normalize-space(cbc:AddressFormatCode) != ''
[F-LIB025] Invalid AddressFormatCode. Must contain a value
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listID = 'urn:oioubl:codelist:addresstypecode-1.1')
[F-LIB204] Invalid listID. Must be 'urn:oioubl:codelist:addresstypecode-1.1'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listAgencyID = '320')
[F-LIB205] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode = 'Home' or cbc:AddressTypeCode = 'Business' )
[F-LIB206] Invalid AddressTypeCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' or cbc:AddressFormatCode/@listID = 'UN/ECE 3477'
[F-LIB026] Invalid listID. Must be either 'urn:oioubl:codelist:addressformatcode-1.1' or 'UN/ECE 3477'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode/@listAgencyID = '320')
[F-LIB207] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode = 'StructuredDK' or cbc:AddressFormatCode = 'StructuredLax' or cbc:AddressFormatCode = 'StructuredID' or cbc:AddressFormatCode = 'StructuredRegion' or cbc:AddressFormatCode = 'Unstructured')
[F-LIB027] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode/@listAgencyID = '6')
[F-LIB208] Invalid listAgencyID. Must be '6'
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode = '1' or cbc:AddressFormatCode = '2' or cbc:AddressFormatCode = '3' or cbc:AddressFormatCode = '4' or cbc:AddressFormatCode = '5' or cbc:AddressFormatCode = '6' or cbc:AddressFormatCode = '7' or cbc:AddressFormatCode = '8' or cbc:AddressFormatCode = '9')
[F-LIB209] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cac:Country and not(cac:Country/cbc:IdentificationCode != '')
[F-LIB213] When Country is used the element Country/IdentificationCode must be filled out
/[]
(cbc:AddressFormatCode = 'Unstructured') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB031] An Unstructured address is only allowed to have AddressLine elements
/[]
(cbc:AddressFormatCode = 'StructuredDK') and cac:AddressLine
[F-LIB032] AddressLine elements not allowed for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and (not(cbc:PostalZone) or normalize-space(cbc:PostalZone) = '')
[F-LIB033] PostalZone is mandatory for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:StreetName) or normalize-space(cbc:StreetName) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB034] There should be either a StreetName or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:BuildingNumber) or normalize-space(cbc:BuildingNumber) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB035] There should be either a BuildingNumber or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredLax') and cac:AddressLine
[F-LIB036] AddressLine elements not allowed for a StructuredLax address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (not(cbc:ID) or cbc:ID = '')
[F-LIB037] ID is required for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB038] Only the ID is used for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and ((not(cac:Country/cbc:IdentificationCode) or cac:Country/cbc:IdentificationCode = '') and (not(cbc:Region) or cbc:Region = '') and (not(cbc:District) or cbc:District = ''))
[F-LIB039] Region or District or Country/IdentificationCode is required for a StructuredRegion address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0')
[F-LIB040] Only Region, District, and/or Country/IdentificationCode can be used for a StructuredRegion address type
/[]
cbc:ID and not(string-length(cbc:ID/@schemeID)>0)
[F-LIB028] When ID is used under Address the attribute schemeID is used to give an addressregister
/[]
cbc:ID and not(cbc:ID/@schemeID)
[F-LIB029] schemeID attribute must be present on an address ID
/[]
cac:Country/cbc:IdentificationCode and not(contains($CountryCode, concat(',',cac:Country/cbc:IdentificationCode,',')))
[F-LIB301] Invalid Country/IdentificationCode: '
'. Must be a value from the codelist
/[]
count(cac:CardAccount) = 0
[F-LIB242] CardAccount class must be excluded
/[]
count(cac:PayerFinancialAccount/cac:FinancialInstitutionBranch/cac:Address) = 0
[F-LIB151] Address class must be excluded
/[]
count(cac:PayerFinancialAccount/cac:Country) = 0
[F-LIB162] Country class must be excluded
/[]
count(cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cac:FinancialInstitution/cac:Address) = 0
[F-LIB243] Address class must be excluded
/[]
count(cac:PayeeFinancialAccount/cac:Country) = 0
[F-LIB244] Country class must be excluded
/[]
cbc:PaymentMeansCode = '1' or cbc:PaymentMeansCode = '10' or cbc:PaymentMeansCode = '20' or cbc:PaymentMeansCode = '31' or cbc:PaymentMeansCode = '42' or cbc:PaymentMeansCode = '48' or cbc:PaymentMeansCode = '49' or cbc:PaymentMeansCode = '50' or cbc:PaymentMeansCode = '93' or cbc:PaymentMeansCode = '97'
[F-LIB100] Invalid PaymentMeansCode. Must be a value from the codelist
/[]
count(../cac:PaymentMeans) > 1 and not(cbc:ID != '')
[W-LIB241] PaymentMeans/ID should be used when more than one instance of the PaymentMeans class is present.
/[]
cac:PayerFinancialAccount/cbc:AccountTypeCode and not(cac:PayerFinancialAccount/cbc:AccountTypeCode/@listID = 'urn:oioubl:codelist:accounttypecode-1.1')
[F-LIB105] Invalid listID. Must be 'urn:oioubl:codelist:accounttypecode-1.1'
/[]
cac:PayerFinancialAccount/cbc:AccountTypeCode and not(cac:PayerFinancialAccount/cbc:AccountTypeCode/@listAgencyID = '320')
[W-LIB121] Invalid listAgencyID. Must be '320'
/[]
cac:PayeeFinancialAccount/cbc:AccountTypeCode and not(cac:PayeeFinancialAccount/cbc:AccountTypeCode/@listID = 'urn:oioubl:codelist:accounttypecode-1.1')
[F-LIB136] Invalid listID. Must be 'urn:oioubl:codelist:accounttypecode-1.1'
/[]
cac:PayeeFinancialAccount/cbc:AccountTypeCode and not(cac:PayeeFinancialAccount/cbc:AccountTypeCode/@listAgencyID = '320')
[W-LIB141] Invalid listAgencyID. Must be '320'
/[]
(cbc:PaymentMeansCode = '31') and (cbc:InstructionID != '') and ((string-length(cbc:InstructionID)> 25) or not(starts-with(cbc:InstructionID, 'RF')) )
[F-LIB330] PaymentMeansCode = 31, InstructionID element must start with 'RF' and be no more than 25 characters.
/[]
(cbc:PaymentMeansCode = '31') and cbc:InstructionNote
[F-LIB103] PaymentMeansCode = 31, InstructionNote element not allowed
/[]
(cbc:PaymentMeansCode = '31') and cbc:PaymentID
[F-LIB104] PaymentMeansCode = 31, PaymentID element not allowed
/[]
(cbc:PaymentMeansCode = '31') and not(cbc:PaymentChannelCode/@listID = 'urn:oioubl:codelist:paymentchannelcode-1.1')
[F-LIB106] PaymentMeansCode = 31, Invalid listID. Must be 'urn:oioubl:codelist:paymentchannelcode-1.1'
/[]
(cbc:PaymentMeansCode = '31') and not(cac:PayeeFinancialAccount/cbc:ID)
[F-LIB107] PaymentMeansCode = 31, ID element is mandatory
/[]
(cbc:PaymentMeansCode = '31') and not(cbc:PaymentChannelCode = 'IBAN' or cbc:PaymentChannelCode = 'ZZZ')
[F-LIB109] PaymentMeansCode = 31, PaymentChannelCode must equal IBAN or ZZZ
/[]
(cbc:PaymentMeansCode = '31') and string-length(cac:PayerFinancialAccount/cbc:PaymentNote)> 20
[F-LIB110] PaymentMeansCode = 31, PaymentNote must be no more than 20 characters
/[]
(cbc:PaymentMeansCode = '31') and string-length(cac:PayeeFinancialAccount/cbc:PaymentNote)> 20
[F-LIB111] PaymentMeansCode = 31, PaymentNote must be no more than 20 characters
/[]
(cbc:PaymentMeansCode = '31') and string-length(cac:CreditAccount/cbc:AccountID) > 8
[F-LIB112] PaymentMeansCode = 31, AccountID must be no more than 8 characters
/[]
(cbc:PaymentMeansCode = '31' and cbc:PaymentChannelCode = 'IBAN') and (cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cbc:ID)
[F-LIB108] PaymentMeansCode = 31, ID element is not used, when PaymentChannelCode equals IBAN
/[]
(cbc:PaymentMeansCode = '31' and cbc:PaymentChannelCode = 'IBAN') and not(cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cac:FinancialInstitution/cbc:ID)
[F-LIB113] PaymentMeansCode = 31, ID element is mandatory
/[]
(cbc:PaymentMeansCode = '31' and cbc:PaymentChannelCode = 'IBAN') and string-length(cac:PayeeFinancialAccount/cbc:ID) > 34
[F-LIB114] PaymentMeansCode = 31, ID must be no more than 34 characters
/[]
(cbc:PaymentMeansCode = '31' and cbc:PaymentChannelCode = 'IBAN') and string-length(cac:PayeeFinancialAccount/cbc:ID) < 1
[F-LIB115] PaymentMeansCode = 31, ID must must not be empty.
/[]
(cbc:PaymentMeansCode = '31' and cbc:PaymentChannelCode = 'ZZZ') and not(cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cbc:ID)
[F-LIB276] PaymentMeansCode = 31, ID element is mandatory, when PaymentChannelCode equals ZZZ
/[]
(cbc:PaymentMeansCode = '31' and cbc:PaymentChannelCode = 'ZZZ') and not(cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cbc:Name)
[F-LIB116] PaymentMeansCode = 31, Name element is mandatory
/[]
(cbc:PaymentMeansCode = '31' and cbc:PaymentChannelCode = 'ZZZ') and not(cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cac:Address)
[F-LIB117] PaymentMeansCode = 31, Address class is mandatory
/[]
(cbc:PaymentMeansCode = '42') and (cbc:InstructionID != '') and ((string-length(cbc:InstructionID)> 25) or not(starts-with(cbc:InstructionID, 'RF')) )
[F-LIB331] PaymentMeansCode = 42, InstructionID element must be maximum 25 characters and start with 'RF'.
/[]
(cbc:PaymentMeansCode = '42') and cbc:InstructionNote
[F-LIB119] PaymentMeansCode = 42, InstructionNote element not allowed
/[]
(cbc:PaymentMeansCode = '42') and cbc:PaymentID
[F-LIB120] PaymentMeansCode = 42, PaymentID element not allowed
/[]
(cbc:PaymentMeansCode = '42') and cac:CreditAccount
[F-LIB122] PaymentMeansCode = 42, CreditAccount class not allowed
/[]
(cbc:PaymentMeansCode = '42') and not(cbc:PaymentChannelCode/@listID = 'urn:oioubl:codelist:paymentchannelcode-1.1')
[F-LIB123] PaymentMeansCode = 42, Invalid listID. Must be 'urn:oioubl:codelist:paymentchannelcode-1.1'
/[]
(cbc:PaymentMeansCode = '42') and cac:PayerFinancialAccount/cac:FinancialInstitutionBranch and not(cac:PayerFinancialAccount/cac:FinancialInstitutionBranch/cbc:ID)
[F-LIB124] PaymentMeansCode = 42, ID element is mandatory
/[]
(cbc:PaymentMeansCode = '42') and not(cac:PayeeFinancialAccount)
[F-LIB125] PaymentMeansCode = 42, PayeeFinancialAccount class is mandatory
/[]
(cbc:PaymentMeansCode = '42') and not(cac:PayeeFinancialAccount/cbc:ID)
[F-LIB126] PaymentMeansCode = 42, ID element is mandatory
/[]
(cbc:PaymentMeansCode = '42') and not(cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cbc:ID)
[F-LIB127] PaymentMeansCode = 42, ID element is mandatory
/[]
(cbc:PaymentMeansCode = '42') and cbc:PaymentChannelCode != 'DK:BANK'
[F-LIB128] PaymentMeansCode = 42, PaymentChannelCode must equal DK:BANK
/[]
(cbc:PaymentMeansCode = '42') and string-length(cac:PayerFinancialAccount/cbc:PaymentNote)> 20
[F-LIB129] PaymentMeansCode = 42, PaymentNote must be no more than 20 characters
/[]
(cbc:PaymentMeansCode = '42') and string-length(cac:PayerFinancialAccount/cac:FinancialInstitutionBranch/cbc:ID) > 4
[F-LIB130] PaymentMeansCode = 42, ID must be no more than 4 numerical characters
/[]
(cbc:PaymentMeansCode = '42') and string-length(cac:PayeeFinancialAccount/cbc:ID)> 10
[F-LIB131] PaymentMeansCode = 42, ID must be no more than 10 characters
/[]
(cbc:PaymentMeansCode = '42') and string-length(cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cbc:ID)> 4
[F-LIB132] PaymentMeansCode = 42, ID must be no more than 4 numerical characters
/[]
(cbc:PaymentMeansCode = '42') and not(number(cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cbc:ID))
[F-LIB311] cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cbc:ID must contain a numerical value
/[]
(cbc:PaymentMeansCode = '42') and string-length(cac:PayeeFinancialAccount/cbc:PaymentNote)> 20
[F-LIB133] PaymentMeansCode = 42, PaymentNote must be no more than 20 characters
/[]
(cbc:PaymentMeansCode = '49') and cbc:InstructionNote
[F-LIB135] PaymentMeansCode = 49, InstructionNote element not allowed
/[]
(cbc:PaymentMeansCode = '49') and cac:CreditAccount
[F-LIB137] PaymentMeansCode = 49, CreditAccount class not allowed
/[]
(cbc:PaymentMeansCode = '49') and cbc:PaymentChannelCode and cbc:InstructionID
[F-LIB134] PaymentMeansCode = 49, Use either PaymentChannelCode or InstructionID element
/[]
(cbc:PaymentMeansCode = '49') and string-length(cac:PayerFinancialAccount/cbc:PaymentNote)> 20
[F-LIB288] PaymentMeansCode = 49, PaymentNote must be no more than 20 characters
/[]
(cbc:PaymentMeansCode = '49' and cbc:PaymentChannelCode) and not(cbc:PaymentChannelCode = 'IBAN' or cbc:PaymentChannelCode = 'DK:BANK')
[F-LIB289] PaymentMeansCode = 49, If present, PaymentChannelCode must equal IBAN or DK:BANK
/[]
(cbc:PaymentMeansCode = '49') and string-length(cbc:InstructionID) > 60
[F-LIB140] PaymentMeansCode = 49, InstructionID must be no more than 60 characters
/[]
(cbc:PaymentMeansCode = '49' and cbc:PaymentChannelCode = 'DK:BANK') and (string-length(cac:PayerFinancialAccount/cbc:ID) != 10)
[F-LIB290] PaymentMeansCode = 49, For DK:BANK, ID must be 10 characters
/[]
(cbc:PaymentMeansCode = '49' and cbc:PaymentChannelCode = 'DK:BANK') and (string-length(cac:PayerFinancialAccount/cac:FinancialInstitutionBranch/cbc:ID) != 4)
[F-LIB291] PaymentMeansCode = 49, For DK:BANK, ID must be 4 numerical characters
/[]
(cbc:PaymentMeansCode = '49' and cbc:PaymentChannelCode = 'IBAN') and string-length(cac:PayerFinancialAccount/cbc:ID) > 34
[F-LIB292] PaymentMeansCode = 49, For IBAN, ID must be no more than 34 characters
/[]
(cbc:PaymentMeansCode = '49' and cbc:PaymentChannelCode = 'IBAN') and string-length(cac:PayerFinancialAccount/cbc:ID) < 18
[F-LIB293] PaymentMeansCode = 49, For IBAN, ID must be at least 18 characters
/[]
(cbc:PaymentMeansCode = '49' and cbc:PaymentChannelCode = 'IBAN') and (cac:PayerFinancialAccount/cac:FinancialInstitutionBranch/cbc:ID)
[F-LIB294] PaymentMeansCode = 49, ID element is not used, when PaymentChannelCode equals IBAN
/[]
(cbc:PaymentMeansCode = '49' and cbc:PaymentChannelCode = 'IBAN') and not(cac:PayerFinancialAccount/cac:FinancialInstitutionBranch/cac:FinancialInstitution/cbc:ID)
[F-LIB295] PaymentMeansCode = 49, For IBAN, ID element is mandatory
/[]
(cbc:PaymentMeansCode = '50') and cac:CreditAccount
[F-LIB142] PaymentMeansCode = 50, CreditAccount class not allowed
/[]
(cbc:PaymentMeansCode = '50') and not(cbc:PaymentID)
[F-LIB144] PaymentMeansCode = 50, PaymentID element is mandatory
/[]
(cbc:PaymentMeansCode = '50') and not(cac:PayeeFinancialAccount)
[F-LIB319] PaymentMeansCode = 50, PayeeFinancialAccount class is mandatory.
/[]
(cbc:PaymentMeansCode = '50') and not(cac:PayeeFinancialAccount/cbc:ID)
[F-LIB320] PaymentMeansCode = 50, PayeeFinancialAccount.ID element is mandatory.
/[]
(cbc:PaymentMeansCode = '50') and (cbc:PaymentID = '04' or cbc:PaymentID = '15') and not(cbc:InstructionID)
[F-LIB145] PaymentMeansCode = 50, InstructionID is mandatory when PaymentID equals 04 or 15
/[]
(cbc:PaymentMeansCode = '50' and cbc:PaymentChannelCode) and cbc:PaymentChannelCode != 'DK:GIRO'
[F-LIB146] PaymentMeansCode = 50, PaymentChannelCode must equal DK:GIRO
/[]
(cbc:PaymentMeansCode = '50' and cbc:PaymentChannelCode) and not(cbc:PaymentChannelCode/@listID = 'urn:oioubl:codelist:paymentchannelcode-1.1')
[F-LIB143] PaymentMeansCode = 50, Invalid listID. Must be 'urn:oioubl:codelist:paymentchannelcode-1.1'
/[]
(cbc:PaymentMeansCode = '50') and not(cbc:PaymentID = '01' or cbc:PaymentID = '04' or cbc:PaymentID = '15')
[F-LIB147] PaymentMeansCode = 50, PaymentID must equal 01, 04 or 15
/[]
(cbc:PaymentMeansCode = '50') and cbc:InstructionNote and not(cbc:PaymentID = '01')
[F-LIB148] PaymentMeansCode = 50, InstructionNote only allowed if PaymentID equals 01
/[]
(cbc:PaymentMeansCode = '50') and string-length(cbc:InstructionID) > 16
[F-LIB149] PaymentMeansCode = 50, InstructionID must be no more than 16 characters
/[]
(cbc:PaymentMeansCode = '50') and (cbc:PaymentID = '04' or cbc:PaymentID = '15') and string(number(cbc:InstructionID)) = 'NaN'
[F-LIB312] PaymentMeansCode = 50, InstructionID must be a numeric value when PaymentID equals 04 or 15.
/[]
(cbc:PaymentMeansCode = '50' or cbc:PaymentChannelCode ='DK:GIRO') and (string-length(cac:PayeeFinancialAccount/cbc:ID) < 7 or string-length(cac:PayeeFinancialAccount/cbc:ID) > 8 or string(number(cac:PayeeFinancialAccount/cbc:ID)) = 'NaN')
[F-LIB321] PaymentMeansCode = 50 or PaymentChannelCode = DK:GIRO, PayeeFinancialAccount.ID must consist of 7 or 8 numerical characters.
/[]
(cbc:PaymentMeansCode = '93') and not(cbc:PaymentID)
[F-LIB152] PaymentMeansCode = 93, PaymentID element is mandatory
/[]
(cbc:PaymentMeansCode = '93') and (cbc:PaymentID = '71' or cbc:PaymentID = '75') and not(cbc:InstructionID)
[F-LIB153] PaymentMeansCode = 93, InstructionID is mandatory when PaymentID equals 71 or 75
/[]
(cbc:PaymentMeansCode = '93' and cbc:PaymentChannelCode) and cbc:PaymentChannelCode != 'DK:FIK'
[F-LIB277] PaymentMeansCode = 93, PaymentChannelCode must equal DK:FIK
/[]
(cbc:PaymentMeansCode = '93' and cbc:PaymentChannelCode) and not(cbc:PaymentChannelCode/@listID = 'urn:oioubl:codelist:paymentchannelcode-1.1')
[F-LIB278] PaymentMeansCode = 93, Invalid listID. Must be 'urn:oioubl:codelist:paymentchannelcode-1.1'
/[]
(cbc:PaymentMeansCode = '93') and cbc:InstructionNote and not(cbc:PaymentID = '73' or cbc:PaymentID = '75')
[F-LIB154] PaymentMeansCode = 93, InstructionNote only allowed if PaymentID equals 73 or 75
/[]
(cbc:PaymentMeansCode = '93') and not(cbc:PaymentID = '71' or cbc:PaymentID = '73' or cbc:PaymentID = '75')
[F-LIB155] PaymentMeansCode = 93, PaymentID must equal 71, 73 or 75
/[]
(cbc:PaymentMeansCode = '93') and cbc:PaymentID = '71' and string-length(cbc:InstructionID) != 15
[F-LIB156] PaymentMeansCode = 93, InstructionID must be equal to 15 characters (when PaymentID equals 71)
/[]
(cbc:PaymentMeansCode = '93') and cbc:PaymentID = '75' and string-length(cbc:InstructionID) != 16
[F-LIB157] PaymentMeansCode = 93, InstructionID must be equal to 16 characters (when PaymentID equals 75)
/[]
(cbc:PaymentMeansCode = '93') and (cbc:PaymentID = '71' or cbc:PaymentID = '75') and string(number(cbc:InstructionID)) = 'NaN'
[F-LIB336] PaymentMeansCode = 93, InstructionID must be a numeric value when PaymentID equals 71 or 75.
/[]
(cbc:PaymentMeansCode = '93') and cbc:PaymentID = '73' and cbc:InstructionID
[F-LIB275] PaymentMeansCode = 93, InstructionID only allowed if PaymentID equals 71 or 75
/[]
(cbc:PaymentMeansCode = '93') and string-length(cac:CreditAccount/cbc:AccountID) != 8
[F-LIB305] PaymentMeansCode = 93, AccountID must be 8 characters
/[]
(cbc:PaymentMeansCode = '97') and cbc:PaymentChannelCode and not(cbc:PaymentChannelCode = 'DK:NEMKONTO')
[F-LIB158] PaymentMeansCode = 97, PaymentChannelCode element only allowed with value = "DK:NEMKONTO"
/[]
(cbc:PaymentMeansCode = '97') and cbc:InstructionID
[F-LIB159] PaymentMeansCode = 97, InstructionID element not allowed
/[]
(cbc:PaymentMeansCode = '97') and cbc:InstructionNote
[F-LIB160] PaymentMeansCode = 97, InstructionNote element not allowed
/[]
(cbc:PaymentMeansCode = '97') and cbc:PaymentID
[F-LIB161] PaymentMeansCode = 97, PaymentID element not allowed
/[]
(cbc:PaymentMeansCode = '97') and cac:PayerFinancialAccount
[F-LIB163] PaymentMeansCode = 97, PayerFinancialAccount class not allowed
/[]
(cbc:PaymentMeansCode = '97') and cac:PayeeFinancialAccount
[F-LIB164] PaymentMeansCode = 97, PayeeFinancialAccount class not allowed
/[]
(cbc:PaymentMeansCode = '97') and cac:CreditAccount
[F-LIB165] PaymentMeansCode = 97, CreditAccount class not allowed
/[]
count(../cac:PaymentTerms) > 1 and not(cbc:ID != '')
[W-LIB245]: ID should be used when more than one instance of the PaymentTerms class is present
/[]
cbc:ID = 'Factoring' and not(cbc:Note != '')
[F-LIB246] when ID equals 'Factoring', Note element is mandatory (factoring note)
/[]
count(cbc:Note) > 1
[F-LIB247] No more than one Note element may be present
/[]
not(starts-with(.,'-'))
[F-LIB020] Invalid
. Must not be negative
/[]
count(cbc:DurationMeasure) = 0
[F-LIB076] DurationMeasure element must be excluded
/[]
count(cbc:DescriptionCode) = 0
[F-LIB077] DescriptionCode element must be excluded
/[]
(cbc:StartTime) and (not(cbc:StartDate) or cbc:StartDate = '')
[F-LIB078] There must be a StartDate if you have a StartTime
/[]
(cbc:EndTime) and (not(cbc:EndDate) or cbc:EndDate = '')
[F-LIB079] There must be a EndDate if you have a EndTime
/[]
(cbc:StartDate and cbc:EndDate) and not(number(translate(cbc:EndDate,'-','')) > number(translate(cbc:StartDate,'-','')) or number(translate(cbc:EndDate,'-','')) = number(translate(cbc:StartDate,'-','')))
[F-LIB080] The EndDate must be greater or equal to the startdate
/[]
(cbc:StartTime and cbc:EndTime) and not(number(translate(cbc:EndTime,':','')) > number(translate(cbc:StartTime,':','')) or number(translate(cbc:EndTime,':','')) = number(translate(cbc:StartTime,':','')))
[F-LIB081] EndTime must be greater or equal to StartTime
/[]
count(../cbc:Description) > 1 and not(./@languageID)
[W-LIB222] The attribute languageID should be used when more than one Description element is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/@languageID = self::*/@languageID
[W-LIB223] Multilanguage error. Replicated Description elements with same languageID attribute value
/[]
count(cbc:DurationMeasure) = 0
[F-LIB076] DurationMeasure element must be excluded
/[]
count(cbc:DescriptionCode) = 0
[F-LIB077] DescriptionCode element must be excluded
/[]
(cbc:StartTime) and (not(cbc:StartDate) or cbc:StartDate = '')
[F-LIB078] There must be a StartDate if you have a StartTime
/[]
(cbc:EndTime) and (not(cbc:EndDate) or cbc:EndDate = '')
[F-LIB079] There must be a EndDate if you have a EndTime
/[]
(cbc:StartDate and cbc:EndDate) and not(number(translate(cbc:EndDate,'-','')) > number(translate(cbc:StartDate,'-','')) or number(translate(cbc:EndDate,'-','')) = number(translate(cbc:StartDate,'-','')))
[F-LIB080] The EndDate must be greater or equal to the startdate
/[]
(cbc:StartTime and cbc:EndTime) and not(number(translate(cbc:EndTime,':','')) > number(translate(cbc:StartTime,':','')) or number(translate(cbc:EndTime,':','')) = number(translate(cbc:StartTime,':','')))
[F-LIB081] EndTime must be greater or equal to StartTime
/[]
count(../cbc:Description) > 1 and not(./@languageID)
[W-LIB222] The attribute languageID should be used when more than one Description element is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/@languageID = self::*/@languageID
[W-LIB223] Multilanguage error. Replicated Description elements with same languageID attribute value
/[]
not(starts-with(.,'-')) and . != 0
[F-LIB013] Invalid
. Must not be negative or zero
/[]
string-length(substring-after(., '.')) != 2
[F-LIB014] Invalid
. Must have 2 decimals
/[]
count(cac:TaxTotal) = 0
[F-LIB224] TaxTotal class must be excluded
/[]
count(cac:PaymentMeans) = 0
[F-LIB225] PaymentMeans class must be excluded
/[]
count(cac:TaxCategory) = 1
[F-LIB226] One TaxCategory class must be present
/[]
cbc:MultiplierFactorNumeric and not(cbc:BaseAmount != '')
[F-LIB248] When MultiplierFactorNumeric is used, BaseAmount is mandatory
/[]
starts-with(cbc:MultiplierFactorNumeric,'-')
[F-LIB227] MultiplierFactorNumeric must be a positive number
/[]
cbc:MultiplierFactorNumeric and ((cbc:Amount - (cbc:BaseAmount * cbc:MultiplierFactorNumeric) < '-1.00') or (cbc:Amount - (cbc:BaseAmount * cbc:MultiplierFactorNumeric) > '1.00'))
[F-LIB228] Amount must equal BaseAmount * MultiplierFactorNumeric
/[]
cbc:AccountingCost and cbc:AccountingCostCode
[F-LIB021] Use either AccountingCost or AccountingCostCode
/[]
not(starts-with(.,'-'))
[F-LIB020] Invalid
. Must not be negative
/[]
not(starts-with(.,'-')) and . != 0
[F-LIB019] Invalid
. Must not be negative or zero
/[]
not(starts-with(.,'-')) and . != 0
[F-LIB019] Invalid
. Must not be negative or zero
/[]
count(cbc:TierRange) = 0
[F-LIB072] TierRange element must be excluded
/[]
count(cbc:TierRatePercent) = 0
[F-LIB073] TierRatePercent element must be excluded
/[]
normalize-space(cbc:ID) != ''
[F-LIB074] Invalid TaxCategory/ID. Must contain a value.
/[]
cbc:ID/@schemeID = $TaxCategory1_schemeID or cbc:ID/@schemeID = $TaxCategory2_schemeID
[F-LIB075] Invalid schemeID. Must be '
' or '
'
/[]
cbc:ID/@schemeAgencyID = $TaxCategory2_agencyID
[W-LIB229] Invalid schemeAgencyID. Must be '320'
/[]
(cbc:ID/@schemeID = $TaxCategory1_schemeID or cbc:ID/@schemeID = $TaxCategory2_schemeID) and not (contains($TaxCategory2, concat(',',cbc:ID,',')))
[F-LIB309] Invalid ID: '
'. Must be a value from the codelist
/[]
(cbc:Name != '') and not(contains(/doc:Invoice/cbc:ProfileID, 'nesubl.eu'))
[W-LIB230] Name should only be used within NES profiles
/[]
cbc:PerUnitAmount and cbc:Percent
[F-LIB231] Use either PerUnitAmount or Percent
/[]
cbc:PerUnitAmount and not(cbc:BaseUnitMeasure != '')
[F-LIB232] When PerUnitAmount is used, BaseUnitMeasure is mandatory
/[]
count(cac:JurisdictionRegionAddress/cbc:ID) = 0
[F-LIB041] ID element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:AddressTypeCode) = 0
[F-LIB042] AddressTypeCode element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Postbox) = 0
[F-LIB043] Postbox element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Floor) = 0
[F-LIB044] Floor element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Room) = 0
[F-LIB045] Room element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:StreetName) = 0
[F-LIB046] StreetName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:AdditionalStreetName) = 0
[F-LIB047] AdditionalStreetName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BlockName) = 0
[F-LIB048] BlockName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BuildingName) = 0
[F-LIB049] BuildingName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BuildingNumber) = 0
[F-LIB050] BuildingNumber element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:InhouseMail) = 0
[F-LIB051] InhouseMail element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Department) = 0
[F-LIB052] Department element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:MarkAttention) = 0
[F-LIB053] MarkAttention element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:MarkCare) = 0
[F-LIB054] MarkCare element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:PlotIdentification) = 0
[F-LIB055] PlotIdentification element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CitySubdivisionName) = 0
[F-LIB056] CitySubdivisionName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CityName) = 0
[F-LIB057] CityName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:PostalZone) = 0
[F-LIB058] PostalZone element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CountrySubentity) = 0
[F-LIB059] CountrySubentity element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CountrySubentityCode) = 0
[F-LIB060] CountrySubentityCode element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:TimezoneOffset) = 0
[F-LIB063] TimezoneOffset element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cac:AddressLine) = 0
[F-LIB234] AddressLine class must be excluded
/[]
count(cac:JurisdictionRegionAddress/cac:LocationCoordinate) = 0
[F-LIB064] LocationCoordinate class must be excluded
/[]
(cbc:ID = '63') and cbc:TaxTypeCode
[F-LIB067] TaxTypeCode is not allowed when TaxScheme/ID equals '63' (Moms)
/[]
normalize-space(cbc:ID) != ''
[F-LIB065] Invalid TaxScheme/ID. Must contain a value.
/[]
normalize-space(cbc:Name) != ''
[F-LIB066] Invalid Name. Must contain a value
/[]
not((cbc:ID = '63' or cbc:ID = 'VAT')) and not(contains($TaxType2, concat(',',cbc:TaxTypeCode,',')))
[F-LIB197] TaxTypeCode must be a value from the '
' codelist when TaxScheme/ID is different from '63' or 'VAT' (Moms)
/[]
cbc:ID/@schemeID = $TaxScheme_schemeID or cbc:ID/@schemeID = $TaxScheme2_schemeID or cbc:ID/@schemeID = $TaxScheme4_schemeID
[F-LIB070] Invalid schemeID. Must be '
' or '
' or '
'
/[]
(cbc:TaxTypeCode) and not((cbc:TaxTypeCode/@listID = $TaxType_listID) or (cbc:TaxTypeCode/@listID = $TaxType_listID2))
[F-LIB071] Invalid listID. Must be '
' or '
'
/[]
(cbc:ID = '63') and cbc:Name != 'Moms'
[F-LIB198] Name must equal 'Moms' when TaxScheme/ID equals '63' (Moms)
/[]
(cbc:ID != '63') and cbc:Name = 'Moms'
[F-LIB199] Name must correspond to the value of TaxScheme/ID
/[]
(cac:JurisdictionRegionAddress/cac:Country/cbc:IdentificationCode) and not(contains($CountryCode, concat(',',cac:JurisdictionRegionAddress/cac:Country/cbc:IdentificationCode,',')))
[F-LIB337] Invalid Country/IdentificationCode: '
'. Must be a value from the country codelist
/[]
(cac:JurisdictionRegionAddress) and cac:JurisdictionRegionAddress/cbc:AddressFormatCode != 'StructuredRegion'
[F-LIB233] The AddressFormatCode under JurisdictionRegionAddress must always equal 'StructuredRegion'
/[]
cac:ForeignExchangeContract and not(normalize-space(cac:ForeignExchangeContract/cbc:ID) != '')
[F-LIB238] Invalid TaxExchangeRate/ForeignExchangeRate/ID. Must contain a value.
/[]
normalize-space(cbc:SourceCurrencyCode) != ''
[F-LIB083] Invalid SourceCurrencyCode. Must contain a value
/[]
normalize-space(cbc:TargetCurrencyCode) != ''
[F-LIB084] Invalid TargetCurrencyCode. Must contain a value
/[]
cbc:SourceCurrencyBaseRate and (starts-with(cbc:SourceCurrencyBaseRate,'-') or cbc:SourceCurrencyBaseRate = 0)
[F-LIB085] Invalid SourceCurrencyBaseRate. Must not be negative or zero
/[]
cbc:SourceCurrencyBaseRate and string-length(substring-after(cbc:SourceCurrencyBaseRate, '.')) != 4
[F-LIB086] Invalid SourceCurrencyBaseRate. Must have 4 decimals
/[]
cbc:TargetCurrencyBaseRate and (starts-with(cbc:TargetCurrencyBaseRate,'-') or cbc:TargetCurrencyBaseRate = 0)
[F-LIB087] Invalid TargetCurrencyBaseRate. Must not be negative or zero
/[]
cbc:TargetCurrencyBaseRate and string-length(substring-after(cbc:TargetCurrencyBaseRate, '.')) != 4
[F-LIB088] Invalid TargetCurrencyBaseRate. Must have 4 decimals
/[]
cbc:CalculationRate and (starts-with(cbc:CalculationRate,'-') or cbc:CalculationRate = 0)
[F-LIB089] Invalid CalculationRate. Must not be negative or zero
/[]
cbc:CalculationRate and string-length(substring-after(cbc:CalculationRate, '.')) != 4
[F-LIB090] Invalid CalculationRate. Must have 4 decimals
/[]
cbc:MathematicOperatorCode != 'multiply' and cbc:MathematicOperatorCode != 'divide'
[F-LIB310] Invalid MathematicOperatorCode. Must either be 'multiply' or 'divide'
/[]
cac:ForeignExchangeContract/cbc:ContractTypeCode and cac:ForeignExchangeContract/cbc:ContractType
[F-LIB239] Use either ContractTypeCode or ContractType
/[]
count(cac:ForeignExchangeContract/cac:ContractDocumentReference) > 1
[F-LIB240] No more than one ContractDocumentReference class may be present
/[]
count(cbc:DurationMeasure) = 0
[F-LIB076] DurationMeasure element must be excluded
/[]
count(cbc:DescriptionCode) = 0
[F-LIB077] DescriptionCode element must be excluded
/[]
(cbc:StartTime) and (not(cbc:StartDate) or cbc:StartDate = '')
[F-LIB078] There must be a StartDate if you have a StartTime
/[]
(cbc:EndTime) and (not(cbc:EndDate) or cbc:EndDate = '')
[F-LIB079] There must be a EndDate if you have a EndTime
/[]
(cbc:StartDate and cbc:EndDate) and not(number(translate(cbc:EndDate,'-','')) > number(translate(cbc:StartDate,'-','')) or number(translate(cbc:EndDate,'-','')) = number(translate(cbc:StartDate,'-','')))
[F-LIB080] The EndDate must be greater or equal to the startdate
/[]
(cbc:StartTime and cbc:EndTime) and not(number(translate(cbc:EndTime,':','')) > number(translate(cbc:StartTime,':','')) or number(translate(cbc:EndTime,':','')) = number(translate(cbc:StartTime,':','')))
[F-LIB081] EndTime must be greater or equal to StartTime
/[]
count(../cbc:Description) > 1 and not(./@languageID)
[W-LIB222] The attribute languageID should be used when more than one Description element is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/@languageID = self::*/@languageID
[W-LIB223] Multilanguage error. Replicated Description elements with same languageID attribute value
/[]
count(cbc:DocumentType) = 0
[F-LIB170] DocumentType element must be excluded
/[]
count(cbc:DocumentTypeCode) = 0
[F-LIB172] DocumentTypeCode element must be excluded
/[]
cac:Attachment and cbc:XPath
[F-LIB169] Use either Attachment or XPath
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and cac:Attachment/cac:ExternalReference
[F-LIB171] Use either EmbeddedDocumentBinaryObject or ExternalReference
/[]
cbc:UUID and not(string-length(string(cbc:UUID)) = 36)
[F-LIB173] Invalid UUID. Must be of this form '6E09886B-DC6E-439F-82D1-7CCAC7F4E3B1'
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and not(cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/tiff' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/png' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/jpeg' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/gif' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='application/pdf' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='text/xml')
[F-LIB174] Attribute mimeCode must be a value from the codelist
/[]
cac:Attachment/cac:ExternalReference and not(cac:Attachment/cac:ExternalReference/cbc:URI != '')
[F-LIB096] When using ExternalReference, URI is mandatory
/[]
cac:ForeignExchangeContract and not(normalize-space(cac:ForeignExchangeContract/cbc:ID) != '')
[F-LIB238] Invalid TaxExchangeRate/ForeignExchangeRate/ID. Must contain a value.
/[]
normalize-space(cbc:SourceCurrencyCode) != ''
[F-LIB083] Invalid SourceCurrencyCode. Must contain a value
/[]
normalize-space(cbc:TargetCurrencyCode) != ''
[F-LIB084] Invalid TargetCurrencyCode. Must contain a value
/[]
cbc:SourceCurrencyBaseRate and (starts-with(cbc:SourceCurrencyBaseRate,'-') or cbc:SourceCurrencyBaseRate = 0)
[F-LIB085] Invalid SourceCurrencyBaseRate. Must not be negative or zero
/[]
cbc:SourceCurrencyBaseRate and string-length(substring-after(cbc:SourceCurrencyBaseRate, '.')) != 4
[F-LIB086] Invalid SourceCurrencyBaseRate. Must have 4 decimals
/[]
cbc:TargetCurrencyBaseRate and (starts-with(cbc:TargetCurrencyBaseRate,'-') or cbc:TargetCurrencyBaseRate = 0)
[F-LIB087] Invalid TargetCurrencyBaseRate. Must not be negative or zero
/[]
cbc:TargetCurrencyBaseRate and string-length(substring-after(cbc:TargetCurrencyBaseRate, '.')) != 4
[F-LIB088] Invalid TargetCurrencyBaseRate. Must have 4 decimals
/[]
cbc:CalculationRate and (starts-with(cbc:CalculationRate,'-') or cbc:CalculationRate = 0)
[F-LIB089] Invalid CalculationRate. Must not be negative or zero
/[]
cbc:CalculationRate and string-length(substring-after(cbc:CalculationRate, '.')) != 4
[F-LIB090] Invalid CalculationRate. Must have 4 decimals
/[]
cbc:MathematicOperatorCode != 'multiply' and cbc:MathematicOperatorCode != 'divide'
[F-LIB310] Invalid MathematicOperatorCode. Must either be 'multiply' or 'divide'
/[]
cac:ForeignExchangeContract/cbc:ContractTypeCode and cac:ForeignExchangeContract/cbc:ContractType
[F-LIB239] Use either ContractTypeCode or ContractType
/[]
count(cac:ForeignExchangeContract/cac:ContractDocumentReference) > 1
[F-LIB240] No more than one ContractDocumentReference class may be present
/[]
count(cbc:DurationMeasure) = 0
[F-LIB076] DurationMeasure element must be excluded
/[]
count(cbc:DescriptionCode) = 0
[F-LIB077] DescriptionCode element must be excluded
/[]
(cbc:StartTime) and (not(cbc:StartDate) or cbc:StartDate = '')
[F-LIB078] There must be a StartDate if you have a StartTime
/[]
(cbc:EndTime) and (not(cbc:EndDate) or cbc:EndDate = '')
[F-LIB079] There must be a EndDate if you have a EndTime
/[]
(cbc:StartDate and cbc:EndDate) and not(number(translate(cbc:EndDate,'-','')) > number(translate(cbc:StartDate,'-','')) or number(translate(cbc:EndDate,'-','')) = number(translate(cbc:StartDate,'-','')))
[F-LIB080] The EndDate must be greater or equal to the startdate
/[]
(cbc:StartTime and cbc:EndTime) and not(number(translate(cbc:EndTime,':','')) > number(translate(cbc:StartTime,':','')) or number(translate(cbc:EndTime,':','')) = number(translate(cbc:StartTime,':','')))
[F-LIB081] EndTime must be greater or equal to StartTime
/[]
count(../cbc:Description) > 1 and not(./@languageID)
[W-LIB222] The attribute languageID should be used when more than one Description element is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/@languageID = self::*/@languageID
[W-LIB223] Multilanguage error. Replicated Description elements with same languageID attribute value
/[]
count(cbc:DocumentType) = 0
[F-LIB170] DocumentType element must be excluded
/[]
count(cbc:DocumentTypeCode) = 0
[F-LIB172] DocumentTypeCode element must be excluded
/[]
cac:Attachment and cbc:XPath
[F-LIB169] Use either Attachment or XPath
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and cac:Attachment/cac:ExternalReference
[F-LIB171] Use either EmbeddedDocumentBinaryObject or ExternalReference
/[]
cbc:UUID and not(string-length(string(cbc:UUID)) = 36)
[F-LIB173] Invalid UUID. Must be of this form '6E09886B-DC6E-439F-82D1-7CCAC7F4E3B1'
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and not(cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/tiff' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/png' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/jpeg' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/gif' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='application/pdf' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='text/xml')
[F-LIB174] Attribute mimeCode must be a value from the codelist
/[]
cac:Attachment/cac:ExternalReference and not(cac:Attachment/cac:ExternalReference/cbc:URI != '')
[F-LIB096] When using ExternalReference, URI is mandatory
/[]
cac:ForeignExchangeContract and not(normalize-space(cac:ForeignExchangeContract/cbc:ID) != '')
[F-LIB238] Invalid TaxExchangeRate/ForeignExchangeRate/ID. Must contain a value.
/[]
normalize-space(cbc:SourceCurrencyCode) != ''
[F-LIB083] Invalid SourceCurrencyCode. Must contain a value
/[]
normalize-space(cbc:TargetCurrencyCode) != ''
[F-LIB084] Invalid TargetCurrencyCode. Must contain a value
/[]
cbc:SourceCurrencyBaseRate and (starts-with(cbc:SourceCurrencyBaseRate,'-') or cbc:SourceCurrencyBaseRate = 0)
[F-LIB085] Invalid SourceCurrencyBaseRate. Must not be negative or zero
/[]
cbc:SourceCurrencyBaseRate and string-length(substring-after(cbc:SourceCurrencyBaseRate, '.')) != 4
[F-LIB086] Invalid SourceCurrencyBaseRate. Must have 4 decimals
/[]
cbc:TargetCurrencyBaseRate and (starts-with(cbc:TargetCurrencyBaseRate,'-') or cbc:TargetCurrencyBaseRate = 0)
[F-LIB087] Invalid TargetCurrencyBaseRate. Must not be negative or zero
/[]
cbc:TargetCurrencyBaseRate and string-length(substring-after(cbc:TargetCurrencyBaseRate, '.')) != 4
[F-LIB088] Invalid TargetCurrencyBaseRate. Must have 4 decimals
/[]
cbc:CalculationRate and (starts-with(cbc:CalculationRate,'-') or cbc:CalculationRate = 0)
[F-LIB089] Invalid CalculationRate. Must not be negative or zero
/[]
cbc:CalculationRate and string-length(substring-after(cbc:CalculationRate, '.')) != 4
[F-LIB090] Invalid CalculationRate. Must have 4 decimals
/[]
cbc:MathematicOperatorCode != 'multiply' and cbc:MathematicOperatorCode != 'divide'
[F-LIB310] Invalid MathematicOperatorCode. Must either be 'multiply' or 'divide'
/[]
cac:ForeignExchangeContract/cbc:ContractTypeCode and cac:ForeignExchangeContract/cbc:ContractType
[F-LIB239] Use either ContractTypeCode or ContractType
/[]
count(cac:ForeignExchangeContract/cac:ContractDocumentReference) > 1
[F-LIB240] No more than one ContractDocumentReference class may be present
/[]
count(cbc:DurationMeasure) = 0
[F-LIB076] DurationMeasure element must be excluded
/[]
count(cbc:DescriptionCode) = 0
[F-LIB077] DescriptionCode element must be excluded
/[]
(cbc:StartTime) and (not(cbc:StartDate) or cbc:StartDate = '')
[F-LIB078] There must be a StartDate if you have a StartTime
/[]
(cbc:EndTime) and (not(cbc:EndDate) or cbc:EndDate = '')
[F-LIB079] There must be a EndDate if you have a EndTime
/[]
(cbc:StartDate and cbc:EndDate) and not(number(translate(cbc:EndDate,'-','')) > number(translate(cbc:StartDate,'-','')) or number(translate(cbc:EndDate,'-','')) = number(translate(cbc:StartDate,'-','')))
[F-LIB080] The EndDate must be greater or equal to the startdate
/[]
(cbc:StartTime and cbc:EndTime) and not(number(translate(cbc:EndTime,':','')) > number(translate(cbc:StartTime,':','')) or number(translate(cbc:EndTime,':','')) = number(translate(cbc:StartTime,':','')))
[F-LIB081] EndTime must be greater or equal to StartTime
/[]
count(../cbc:Description) > 1 and not(./@languageID)
[W-LIB222] The attribute languageID should be used when more than one Description element is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/@languageID = self::*/@languageID
[W-LIB223] Multilanguage error. Replicated Description elements with same languageID attribute value
/[]
count(cbc:DocumentType) = 0
[F-LIB170] DocumentType element must be excluded
/[]
count(cbc:DocumentTypeCode) = 0
[F-LIB172] DocumentTypeCode element must be excluded
/[]
cac:Attachment and cbc:XPath
[F-LIB169] Use either Attachment or XPath
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and cac:Attachment/cac:ExternalReference
[F-LIB171] Use either EmbeddedDocumentBinaryObject or ExternalReference
/[]
cbc:UUID and not(string-length(string(cbc:UUID)) = 36)
[F-LIB173] Invalid UUID. Must be of this form '6E09886B-DC6E-439F-82D1-7CCAC7F4E3B1'
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and not(cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/tiff' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/png' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/jpeg' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/gif' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='application/pdf' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='text/xml')
[F-LIB174] Attribute mimeCode must be a value from the codelist
/[]
cac:Attachment/cac:ExternalReference and not(cac:Attachment/cac:ExternalReference/cbc:URI != '')
[F-LIB096] When using ExternalReference, URI is mandatory
/[]
cac:ForeignExchangeContract and not(normalize-space(cac:ForeignExchangeContract/cbc:ID) != '')
[F-LIB238] Invalid TaxExchangeRate/ForeignExchangeRate/ID. Must contain a value.
/[]
normalize-space(cbc:SourceCurrencyCode) != ''
[F-LIB083] Invalid SourceCurrencyCode. Must contain a value
/[]
normalize-space(cbc:TargetCurrencyCode) != ''
[F-LIB084] Invalid TargetCurrencyCode. Must contain a value
/[]
cbc:SourceCurrencyBaseRate and (starts-with(cbc:SourceCurrencyBaseRate,'-') or cbc:SourceCurrencyBaseRate = 0)
[F-LIB085] Invalid SourceCurrencyBaseRate. Must not be negative or zero
/[]
cbc:SourceCurrencyBaseRate and string-length(substring-after(cbc:SourceCurrencyBaseRate, '.')) != 4
[F-LIB086] Invalid SourceCurrencyBaseRate. Must have 4 decimals
/[]
cbc:TargetCurrencyBaseRate and (starts-with(cbc:TargetCurrencyBaseRate,'-') or cbc:TargetCurrencyBaseRate = 0)
[F-LIB087] Invalid TargetCurrencyBaseRate. Must not be negative or zero
/[]
cbc:TargetCurrencyBaseRate and string-length(substring-after(cbc:TargetCurrencyBaseRate, '.')) != 4
[F-LIB088] Invalid TargetCurrencyBaseRate. Must have 4 decimals
/[]
cbc:CalculationRate and (starts-with(cbc:CalculationRate,'-') or cbc:CalculationRate = 0)
[F-LIB089] Invalid CalculationRate. Must not be negative or zero
/[]
cbc:CalculationRate and string-length(substring-after(cbc:CalculationRate, '.')) != 4
[F-LIB090] Invalid CalculationRate. Must have 4 decimals
/[]
cbc:MathematicOperatorCode != 'multiply' and cbc:MathematicOperatorCode != 'divide'
[F-LIB310] Invalid MathematicOperatorCode. Must either be 'multiply' or 'divide'
/[]
cac:ForeignExchangeContract/cbc:ContractTypeCode and cac:ForeignExchangeContract/cbc:ContractType
[F-LIB239] Use either ContractTypeCode or ContractType
/[]
count(cac:ForeignExchangeContract/cac:ContractDocumentReference) > 1
[F-LIB240] No more than one ContractDocumentReference class may be present
/[]
count(cbc:DurationMeasure) = 0
[F-LIB076] DurationMeasure element must be excluded
/[]
count(cbc:DescriptionCode) = 0
[F-LIB077] DescriptionCode element must be excluded
/[]
(cbc:StartTime) and (not(cbc:StartDate) or cbc:StartDate = '')
[F-LIB078] There must be a StartDate if you have a StartTime
/[]
(cbc:EndTime) and (not(cbc:EndDate) or cbc:EndDate = '')
[F-LIB079] There must be a EndDate if you have a EndTime
/[]
(cbc:StartDate and cbc:EndDate) and not(number(translate(cbc:EndDate,'-','')) > number(translate(cbc:StartDate,'-','')) or number(translate(cbc:EndDate,'-','')) = number(translate(cbc:StartDate,'-','')))
[F-LIB080] The EndDate must be greater or equal to the startdate
/[]
(cbc:StartTime and cbc:EndTime) and not(number(translate(cbc:EndTime,':','')) > number(translate(cbc:StartTime,':','')) or number(translate(cbc:EndTime,':','')) = number(translate(cbc:StartTime,':','')))
[F-LIB081] EndTime must be greater or equal to StartTime
/[]
count(../cbc:Description) > 1 and not(./@languageID)
[W-LIB222] The attribute languageID should be used when more than one Description element is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/@languageID = self::*/@languageID
[W-LIB223] Multilanguage error. Replicated Description elements with same languageID attribute value
/[]
count(cbc:DocumentType) = 0
[F-LIB170] DocumentType element must be excluded
/[]
count(cbc:DocumentTypeCode) = 0
[F-LIB172] DocumentTypeCode element must be excluded
/[]
cac:Attachment and cbc:XPath
[F-LIB169] Use either Attachment or XPath
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and cac:Attachment/cac:ExternalReference
[F-LIB171] Use either EmbeddedDocumentBinaryObject or ExternalReference
/[]
cbc:UUID and not(string-length(string(cbc:UUID)) = 36)
[F-LIB173] Invalid UUID. Must be of this form '6E09886B-DC6E-439F-82D1-7CCAC7F4E3B1'
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and not(cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/tiff' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/png' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/jpeg' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/gif' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='application/pdf' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='text/xml')
[F-LIB174] Attribute mimeCode must be a value from the codelist
/[]
cac:Attachment/cac:ExternalReference and not(cac:Attachment/cac:ExternalReference/cbc:URI != '')
[F-LIB096] When using ExternalReference, URI is mandatory
/[]
count(../cac:TaxTotal[cac:TaxSubtotal/cac:TaxCategory/cac:TaxScheme/cbc:ID = '63' or cac:TaxSubtotal/cac:TaxCategory/cac:TaxScheme/cbc:ID = 'VAT']) = 1
[F-LIB306] One TaxTotal class must contain VAT (Moms)
/[]
cac:TaxSubtotal/cac:TaxCategory/cac:TaxScheme/cbc:ID = ./following-sibling::*/cac:TaxSubtotal/cac:TaxCategory/cac:TaxScheme/cbc:ID
[F-LIB314] Using the same TaxScheme.ID in two different TaxTotal classes is not allowed.
/[]
string-length(substring-after(cbc:TaxAmount, '.')) != 2
[F-LIB250] Invalid TaxAmount. Must have 2 decimals
/[]
cbc:RoundingAmount and (cbc:RoundingAmount = 0)
[F-LIB251] Invalid RoundingAmount. Must not be zero
/[]
cbc:RoundingAmount and string-length(substring-after(cbc:RoundingAmount, '.')) != 2
[F-LIB252] Invalid RoundingAmount. Must have 2 decimals
/[]
cbc:TaxEvidenceIndicator = 'false' and /doc:Invoice/cbc:InvoiceTypeCode != '325'
[F-LIB253] Can only be false if proforma invoice (InvoiceTypeCode = '325')
/[]
count(cbc:Percent) = 0
[F-LIB254] Percent element must be excluded
/[]
count(cbc:BaseUnitMeasure) = 0
[F-LIB255] BaseUnitMeasure element must be excluded
/[]
count(cbc:PerUnitAmount) = 0
[F-LIB256] PerUnitAmount element must be excluded
/[]
count(cbc:TierRange) = 0
[F-LIB257] TierRange element must be excluded
/[]
count(cbc:TierRatePercent) = 0
[F-LIB258] TierRatePercent element must be excluded
/[]
normalize-space(cbc:TaxableAmount) != ''
[F-LIB259] Invalid TaxableAmount. Must contain a value
/[]
$ID63 and cac:TaxCategory/cac:TaxScheme/cbc:ID = ./following-sibling::*/cac:TaxCategory/cac:TaxScheme/cbc:ID and cac:TaxCategory/cbc:ID = ./following-sibling::*/cac:TaxCategory/cbc:ID
[F-LIB315] Specifying the same TaxSubtotal.TaxCategory.ID in one TaxTotal class is not allowed
/[]
cac:TaxCategory/cac:TaxScheme/cbc:ID != ./following-sibling::*/cac:TaxCategory/cac:TaxScheme/cbc:ID
[F-LIB316] Specifying different TaxScheme.ID in same TaxTotal class is not allowed.
/[]
string-length(substring-after(cbc:TaxableAmount, '.')) != 2
[F-LIB261] Invalid TaxableAmount. Must have 2 decimals
/[]
string-length(substring-after(cbc:TaxAmount, '.')) != 2
[F-LIB263] Invalid TaxAmount. Must have 2 decimals
/[]
cbc:CalculationSequenceNumeric and (starts-with(cbc:CalculationSequenceNumeric,'-') or cbc:CalculationSequenceNumeric = 0)
[F-LIB264] Invalid CalculationSequenceNumeric. Must not be negative or zero
/[]
/doc:Invoice/cac:TaxExchangeRate and count(cbc:TransactionCurrencyTaxAmount) = 0
[F-LIB265] if Tax Currency is different from Document Currency, TransactionCurrencyTaxAmount is mandatory
/[]
cbc:TransactionCurrencyTaxAmount and (starts-with(cbc:TransactionCurrencyTaxAmount,'-'))
[F-LIB266] Invalid TransactionCurrencyTaxAmount. Must not be negative
/[]
cbc:TransactionCurrencyTaxAmount and string-length(substring-after(cbc:TransactionCurrencyTaxAmount, '.')) != 2
[F-LIB267] Invalid TransactionCurrencyTaxAmount. Must have 2 decimals
/[]
(cac:TaxCategory/cac:TaxScheme/cbc:ID = 'VAT') and not(cac:TaxCategory/cbc:Percent)
[F-LIB333] When TaxCategory/TaxScheme/Id is VAT, the TaxCategory/Percent must be present.
/[]
(cac:TaxCategory/cac:TaxScheme/cbc:ID = 'VAT') and ((cac:TaxCategory/cbc:Percent = '') or (string-length(substring-after(cac:TaxCategory/cbc:Percent, '.')) > 2))
[F-LIB334] The TaxCategory/Percent must contain a decimal value with maximum 2 decimals.
/[]
count(cbc:TierRange) = 0
[F-LIB072] TierRange element must be excluded
/[]
count(cbc:TierRatePercent) = 0
[F-LIB073] TierRatePercent element must be excluded
/[]
normalize-space(cbc:ID) != ''
[F-LIB074] Invalid TaxCategory/ID. Must contain a value.
/[]
cbc:ID/@schemeID = $TaxCategory1_schemeID or cbc:ID/@schemeID = $TaxCategory2_schemeID
[F-LIB075] Invalid schemeID. Must be '
' or '
'
/[]
cbc:ID/@schemeAgencyID = $TaxCategory2_agencyID
[W-LIB229] Invalid schemeAgencyID. Must be '320'
/[]
(cbc:ID/@schemeID = $TaxCategory1_schemeID or cbc:ID/@schemeID = $TaxCategory2_schemeID) and not (contains($TaxCategory2, concat(',',cbc:ID,',')))
[F-LIB309] Invalid ID: '
'. Must be a value from the codelist
/[]
(cbc:Name != '') and not(contains(/doc:Invoice/cbc:ProfileID, 'nesubl.eu'))
[W-LIB230] Name should only be used within NES profiles
/[]
cbc:PerUnitAmount and cbc:Percent
[F-LIB231] Use either PerUnitAmount or Percent
/[]
cbc:PerUnitAmount and not(cbc:BaseUnitMeasure != '')
[F-LIB232] When PerUnitAmount is used, BaseUnitMeasure is mandatory
/[]
count(cac:JurisdictionRegionAddress/cbc:ID) = 0
[F-LIB041] ID element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:AddressTypeCode) = 0
[F-LIB042] AddressTypeCode element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Postbox) = 0
[F-LIB043] Postbox element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Floor) = 0
[F-LIB044] Floor element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Room) = 0
[F-LIB045] Room element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:StreetName) = 0
[F-LIB046] StreetName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:AdditionalStreetName) = 0
[F-LIB047] AdditionalStreetName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BlockName) = 0
[F-LIB048] BlockName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BuildingName) = 0
[F-LIB049] BuildingName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BuildingNumber) = 0
[F-LIB050] BuildingNumber element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:InhouseMail) = 0
[F-LIB051] InhouseMail element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Department) = 0
[F-LIB052] Department element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:MarkAttention) = 0
[F-LIB053] MarkAttention element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:MarkCare) = 0
[F-LIB054] MarkCare element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:PlotIdentification) = 0
[F-LIB055] PlotIdentification element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CitySubdivisionName) = 0
[F-LIB056] CitySubdivisionName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CityName) = 0
[F-LIB057] CityName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:PostalZone) = 0
[F-LIB058] PostalZone element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CountrySubentity) = 0
[F-LIB059] CountrySubentity element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CountrySubentityCode) = 0
[F-LIB060] CountrySubentityCode element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:TimezoneOffset) = 0
[F-LIB063] TimezoneOffset element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cac:AddressLine) = 0
[F-LIB234] AddressLine class must be excluded
/[]
count(cac:JurisdictionRegionAddress/cac:LocationCoordinate) = 0
[F-LIB064] LocationCoordinate class must be excluded
/[]
(cbc:ID = '63') and cbc:TaxTypeCode
[F-LIB067] TaxTypeCode is not allowed when TaxScheme/ID equals '63' (Moms)
/[]
normalize-space(cbc:ID) != ''
[F-LIB065] Invalid TaxScheme/ID. Must contain a value.
/[]
normalize-space(cbc:Name) != ''
[F-LIB066] Invalid Name. Must contain a value
/[]
not((cbc:ID = '63' or cbc:ID = 'VAT')) and not(contains($TaxType2, concat(',',cbc:TaxTypeCode,',')))
[F-LIB197] TaxTypeCode must be a value from the '
' codelist when TaxScheme/ID is different from '63' or 'VAT' (Moms)
/[]
cbc:ID/@schemeID = $TaxScheme_schemeID or cbc:ID/@schemeID = $TaxScheme2_schemeID or cbc:ID/@schemeID = $TaxScheme4_schemeID
[F-LIB070] Invalid schemeID. Must be '
' or '
' or '
'
/[]
(cbc:TaxTypeCode) and not((cbc:TaxTypeCode/@listID = $TaxType_listID) or (cbc:TaxTypeCode/@listID = $TaxType_listID2))
[F-LIB071] Invalid listID. Must be '
' or '
'
/[]
(cbc:ID = '63') and cbc:Name != 'Moms'
[F-LIB198] Name must equal 'Moms' when TaxScheme/ID equals '63' (Moms)
/[]
(cbc:ID != '63') and cbc:Name = 'Moms'
[F-LIB199] Name must correspond to the value of TaxScheme/ID
/[]
(cac:JurisdictionRegionAddress/cac:Country/cbc:IdentificationCode) and not(contains($CountryCode, concat(',',cac:JurisdictionRegionAddress/cac:Country/cbc:IdentificationCode,',')))
[F-LIB337] Invalid Country/IdentificationCode: '
'. Must be a value from the country codelist
/[]
(cac:JurisdictionRegionAddress) and cac:JurisdictionRegionAddress/cbc:AddressFormatCode != 'StructuredRegion'
[F-LIB233] The AddressFormatCode under JurisdictionRegionAddress must always equal 'StructuredRegion'
/[]
normalize-space(cbc:LineExtensionAmount) != ''
[F-INV120] Invalid LineExtensionAmount. Must contain a value
/[]
count(../cac:AllowanceCharge[cbc:ChargeIndicator='false']) and not(cbc:AllowanceTotalAmount)
[F-INV122] AllowanceTotalAmount is mandatory when AllowanceCharge classes (with ChargeIndicator='false') are present
/[]
count(../cac:AllowanceCharge[cbc:ChargeIndicator='true']) and not(cbc:ChargeTotalAmount)
[F-INV123] ChargeTotalAmount is mandatory when AllowanceCharge classes (with ChargeIndicator='true') are present
/[]
count(../cac:PrepaidPayment/cbc:PaidAmount) and not(cbc:PrepaidAmount)
[F-INV124] PrepaidAmount is mandatory when PrepaidPayment/PaidAmount elements are present
/[]
count(../cac:TaxTotal/cbc:RoundingAmount) and not(cbc:PayableRoundingAmount)
[F-INV125] PayableRoundingAmount is mandatory when TaxTotal/RoundingAmount elements are present
/[]
((cbc:LineExtensionAmount - sum(../cac:InvoiceLine[not(cbc:FreeOfChargeIndicator) or cbc:FreeOfChargeIndicator = 'false']/cbc:LineExtensionAmount)) > '0.0055') or ((cbc:LineExtensionAmount - sum(../cac:InvoiceLine[not(cbc:FreeOfChargeIndicator) or cbc:FreeOfChargeIndicator = 'false']/cbc:LineExtensionAmount)) < '-0.0055')
[F-INV126] The sum of InvoiceLine/LineExtensionAmount elements must equal LineExtensionAmount
/[]
cbc:TaxExclusiveAmount and not(format-number(cbc:TaxExclusiveAmount,'##.00') = format-number(sum(../cac:TaxTotal/cac:TaxSubtotal/cbc:TaxAmount),'##.00'))
[F-INV127] The sum of TaxTotal/TaxSubtotal/TaxAmount elements must equal TaxExclusiveAmount
/[]
cbc:TaxInclusiveAmount and not(format-number(cbc:TaxInclusiveAmount,'##.00') = format-number(sum(cbc:LineExtensionAmount) + sum(../cac:TaxTotal/cac:TaxSubtotal/cbc:TaxAmount) + sum(cbc:ChargeTotalAmount) - sum(cbc:AllowanceTotalAmount) + sum(cbc:PayableRoundingAmount),'##.00'))
[F-INV128] TaxInclusiveAmount is calculated incorrectly
/[]
cbc:AllowanceTotalAmount and not(format-number(cbc:AllowanceTotalAmount,'##.00') = format-number(sum(../cac:AllowanceCharge[cbc:ChargeIndicator='false']/cbc:Amount),'##.00'))
[F-INV129] The sum of AllowanceCharge/Amount elements (with ChargeIndicator='false') must equal AllowanceTotalAmount
/[]
cbc:ChargeTotalAmount and not(format-number(cbc:ChargeTotalAmount,'##.00') = format-number(sum(../cac:AllowanceCharge[cbc:ChargeIndicator='true']/cbc:Amount),'##.00'))
[F-INV130] The sum of AllowanceCharge/Amount elements (with ChargeIndicator='true') must equal cbc:ChargeTotalAmount
/[]
cbc:PrepaidAmount and not(format-number(cbc:PrepaidAmount,'##.00') = format-number(sum(../cac:PrepaidPayment/cbc:PaidAmount),'##.00'))
[F-INV131] The sum of PrepaidPayment/PaidAmount elements must equal PrepaidAmount
/[]
(cbc:PayableRoundingAmount) and (../cac:TaxTotal/cbc:RoundingAmount) and (not(format-number(cbc:PayableRoundingAmount,'##.00') = format-number(sum(../cac:TaxTotal/cbc:RoundingAmount),'##.00')))
[F-INV132] The sum of TaxTotal/RoundingAmount elements must equal PayableRoundingAmount
/[]
(cbc:PayableRoundingAmount) and ((cbc:PayableRoundingAmount < -10.00) or (cbc:PayableRoundingAmount > 10.00))
[F-INV338] The LegalMonetaryTotal/PayableRoundingAmount must NOT be less then -10.00 or greater then 10.00.
/[]
format-number(sum(cbc:PayableAmount) *-1,'##.00') = format-number((sum(cbc:LineExtensionAmount) + sum(../cac:TaxTotal/cac:TaxSubtotal/cbc:TaxAmount) + sum(cbc:ChargeTotalAmount) - sum(cbc:AllowanceTotalAmount) - sum(cbc:PrepaidAmount) + sum(cbc:PayableRoundingAmount)) *-1,'##.00')
[F-INV133] PayableAmount is calculated incorrectly
/[]
(count(../cac:PaymentTerms) > 0) and not ( (format-number(cbc:PayableAmount,'##.00') = format-number(sum(../cac:PaymentTerms/cbc:Amount),'##.00')) or (format-number(cbc:PayableAmount,'##.00') = format-number(../cac:PaymentTerms[1]/cbc:Amount,'##.00')))
[F-INV134] The sum of PaymentTerms/Amount elements or the value of the first PaymentTerms/Amount must equal PayableAmount
/[]
string-length(substring-after(., '.')) != 2
[F-LIB014] Invalid
. Must have 2 decimals
/[]
string-length(substring-after(., '.')) != 2
[F-LIB014] Invalid
. Must have 2 decimals
/[]
not(starts-with(.,'-'))
[F-LIB016] Invalid
. Must not be negative
/[]
string-length(substring-after(., '.')) != 2
[F-LIB014] Invalid
. Must have 2 decimals
/[]
not(starts-with(.,'-')) and . != 0
[F-LIB013] Invalid
. Must not be negative or zero
/[]
string-length(substring-after(., '.')) != 2
[F-LIB014] Invalid
. Must have 2 decimals
/[]
not(starts-with(.,'-')) and . != 0
[F-LIB013] Invalid
. Must not be negative or zero
/[]
string-length(substring-after(., '.')) != 2
[F-LIB014] Invalid
. Must have 2 decimals
/[]
not(starts-with(.,'-')) and . != 0
[F-LIB013] Invalid
. Must not be negative or zero
/[]
string-length(substring-after(., '.')) != 2
[F-LIB014] Invalid
. Must have 2 decimals
/[]
. != 0
[F-LIB303] Invalid
. Must not be zero
/[]
string-length(substring-after(., '.')) != 2
[F-LIB014] Invalid
. Must have 2 decimals
/[]
not(starts-with(.,'-'))
[F-LIB016] Invalid
. Must not be negative
/[]
string-length(substring-after(., '.')) != 2
[F-LIB014] Invalid
. Must have 2 decimals
/[]
count(cac:PaymentTerms) = 0
[F-INV135] PaymentTerms class must be excluded
/[]
count(cac:DeliveryTerms) = 0
[F-INV136] DeliveryTerms class must be excluded
/[]
normalize-space(cbc:InvoicedQuantity) != ''
[F-INV137] Invalid InvoicedQuantity. Must contain a value
/[]
count(cac:TaxTotal) != 0
[F-INV138] One or more TaxTotal classes must be present
/[]
count(cac:Price) = 1
[F-INV139] One Price class must be present
/[]
normalize-space(cbc:ID) != ''
[F-INV140] Invalid InvoiceLine/ID. Must contain a value.
/[]
cbc:ID = ./following-sibling::*/cbc:ID
[W-INV237] ID must be unique within the document instance
/[]
cbc:AccountingCost and cbc:AccountingCostCode
[F-LIB021] Use either AccountingCost or AccountingCostCode
/[]
cac:OrderLineReference and not(count(../cac:OrderReference))
[F-INV142] Invoice/OrderReference is mandatory when OrderLineReference class is present
/[]
cac:Delivery/cbc:ActualDeliveryDate and count(../cac:Delivery/cbc:ActualDeliveryDate)
[F-INV330] Only use Delivery.ActualDeliveryDate if not specified on header level (Invoice.Delivery)
/[]
cac:Delivery/cac:RequestedDeliveryPeriod and count(../cac:Delivery/cac:RequestedDeliveryPeriod)
[F-INV331] Only use Delivery.RequestedDeliveryPeriod if not specified on header level (Invoice.Delivery)
/[]
cac:Delivery/cac:DeliveryLocation and count(../cac:Delivery/cac:DeliveryLocation)
[F-INV332] Only use Delivery.DeliveryLocation if not specified on header level (Invoice.Delivery)
/[]
cac:Delivery/cac:DeliveryParty and count(../cac:Delivery/cac:DeliveryParty)
[F-INV333] Only use Delivery.DeliveryParty if not specified on header level (Invoice.Delivery)
/[]
not($NegativeLEA or $NegativePA) and starts-with(cac:AllowanceCharge/cbc:Amount,'-')
[F-INV335] AllowanceCharge.Amount can not be negative, if InvoicedQuantity or Price.PriceAmount is not negative.
/[]
not($NegativeLEA or $NegativePA) and starts-with(cac:Price/cac:AllowanceCharge/cbc:Amount,'-')
[F-INV335] AllowanceCharge.Amount can not be negative, if InvoicedQuantity or Price.PriceAmount is not negative.
/[]
($F and $T and $PER) and ((cbc:LineExtensionAmount < (cbc:InvoicedQuantity * cac:Price/cbc:PriceAmount - '01.00')) or (cbc:LineExtensionAmount > (cbc:InvoicedQuantity * cac:Price/cbc:PriceAmount + '01.00')))
[F-INV144] LineExtensionAmount must equal InvoicedQuantity * Price.PriceAmount (when OrderableUnitFactorRate not present)
/[]
($F and ($T or not($T)) and not($PER) and $CRandMOC)
[W-INV323] LineExtensionAmount cannot be evaluated since either 'cbc:CalculationRate', 'cbc:MathematicOperatorCode' or both are not present in 'Invoice/cac:PricingExchangeRate'
/[]
($F and $T and not($PER) and not($CRandMOC) and $Multiply) and ((cbc:LineExtensionAmount < (cbc:InvoicedQuantity * cac:Price/cbc:PriceAmount * ../cac:PricingExchangeRate/cbc:CalculationRate - '01.00')) or (cbc:LineExtensionAmount > (cbc:InvoicedQuantity * cac:Price/cbc:PriceAmount * ../cac:PricingExchangeRate/cbc:CalculationRate + '01.00')))
[F-INV326] LineExtensionAmount must equal InvoicedQuantity * Price.PriceAmount * Invoice.PricingExchangeRate.CalculationRate (when '../cac:PricingExchangeRate' is present with MathematicOperatorCode = 'multiply' and OrderableUnitFactorRate is not present)
/[]
($F and $T and not($PER) and not($CRandMOC) and $Divide) and ((cbc:LineExtensionAmount < (((cbc:InvoicedQuantity * cac:Price/cbc:PriceAmount) div ../cac:PricingExchangeRate/cbc:CalculationRate) - '01.00')) or (cbc:LineExtensionAmount > (((cbc:InvoicedQuantity * cac:Price/cbc:PriceAmount) div ../cac:PricingExchangeRate/cbc:CalculationRate) + '01.00')))
[F-INV327] LineExtensionAmount must equal (InvoicedQuantity * Price.PriceAmount) div Invoice.PricingExchangeRate.CalculationRate (when '../cac:PricingExchangeRate' is present with MathematicOperatorCode = 'divide' and OrderableUnitFactorRate is not present)
/[]
($F and not($T) and $PER) and ((cbc:LineExtensionAmount < (cbc:InvoicedQuantity * cac:Price/cbc:PriceAmount * cac:Price/cbc:OrderableUnitFactorRate - '01.00')) or (cbc:LineExtensionAmount > (cbc:InvoicedQuantity * cac:Price/cbc:PriceAmount * cac:Price/cbc:OrderableUnitFactorRate + '01.00')))
[F-INV323] LineExtensionAmount must equal InvoicedQuantity * Price.PriceAmount * Price.OrderableUnitFactorRate
/[]
($F and not($T) and not($PER) and not($CRandMOC) and $Multiply) and ((cbc:LineExtensionAmount < (cbc:InvoicedQuantity * cac:Price/cbc:PriceAmount * cac:Price/cbc:OrderableUnitFactorRate * ../cac:PricingExchangeRate/cbc:CalculationRate - '01.00')) or (cbc:LineExtensionAmount > (cbc:InvoicedQuantity * cac:Price/cbc:PriceAmount * cac:Price/cbc:OrderableUnitFactorRate * ../cac:PricingExchangeRate/cbc:CalculationRate + '01.00')))
[F-INV328] LineExtensionAmount must equal InvoicedQuantity * Price.PriceAmount * Price.OrderableUnitFactorRate * Invoice.PricingExchangeRate.CalculationRate (when '../cac:PricingExchangeRate' is present with MathematicOperatorCode = 'multiply')
/[]
($F and not($T) and not($PER) and not($CRandMOC) and $Divide) and (((cbc:LineExtensionAmount < ((cbc:InvoicedQuantity * cac:Price/cbc:PriceAmount * cac:Price/cbc:OrderableUnitFactorRate) div ../cac:PricingExchangeRate/cbc:CalculationRate) - '01.00')) or (cbc:LineExtensionAmount > (((cbc:InvoicedQuantity * cac:Price/cbc:PriceAmount * cac:Price/cbc:OrderableUnitFactorRate) div ../cac:PricingExchangeRate/cbc:CalculationRate) + '01.00')))
[F-INV329] LineExtensionAmount must equal (InvoicedQuantity * Price.PriceAmount * Price.OrderableUnitFactorRate) div Invoice.PricingExchangeRate.CalculationRate (when '../cac:PricingExchangeRate' is present with MathematicOperatorCode = 'divide')
/[]
not(./@unitCode)
[F-LIB007] Attribute unitCode must be used for
/[]
string-length(./@unitCode)>1
[W-LIB008] The value of unitCode attribute should be a valid UOM measure
/[]
contains($Quantity_unitCode, concat(',',./@unitCode,','))
[F-LIB318] Invalid unitCode: '
'. Must be a value from the codelist.
/[]
string-length(substring-after(., '.')) > 6
[F-INV146] Invalid InvoicedQuantity. No more than 6 decimals
/[]
. != 0
[F-INV147] Invalid InvoicedQuantity. Must not be zero
/[]
string-length(substring-after(., '.')) < 2
[F-INV149] Invalid LineExtensionAmount. Must have at least 2 decimals
/[]
normalize-space(cbc:LineID) != ''
[F-INV153] Invalid LineID. Must contain a value
/[]
count(cbc:DocumentType) = 0
[F-LIB170] DocumentType element must be excluded
/[]
count(cbc:DocumentTypeCode) = 0
[F-LIB172] DocumentTypeCode element must be excluded
/[]
cac:Attachment and cbc:XPath
[F-LIB169] Use either Attachment or XPath
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and cac:Attachment/cac:ExternalReference
[F-LIB171] Use either EmbeddedDocumentBinaryObject or ExternalReference
/[]
cbc:UUID and not(string-length(string(cbc:UUID)) = 36)
[F-LIB173] Invalid UUID. Must be of this form '6E09886B-DC6E-439F-82D1-7CCAC7F4E3B1'
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and not(cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/tiff' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/png' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/jpeg' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/gif' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='application/pdf' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='text/xml')
[F-LIB174] Attribute mimeCode must be a value from the codelist
/[]
cac:Attachment/cac:ExternalReference and not(cac:Attachment/cac:ExternalReference/cbc:URI != '')
[F-LIB096] When using ExternalReference, URI is mandatory
/[]
normalize-space(cbc:LineID) != ''
[F-INV314] Invalid LineID. Must contain a value
/[]
count(cbc:DocumentType) = 0
[F-LIB170] DocumentType element must be excluded
/[]
count(cbc:DocumentTypeCode) = 0
[F-LIB172] DocumentTypeCode element must be excluded
/[]
cac:Attachment and cbc:XPath
[F-LIB169] Use either Attachment or XPath
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and cac:Attachment/cac:ExternalReference
[F-LIB171] Use either EmbeddedDocumentBinaryObject or ExternalReference
/[]
cbc:UUID and not(string-length(string(cbc:UUID)) = 36)
[F-LIB173] Invalid UUID. Must be of this form '6E09886B-DC6E-439F-82D1-7CCAC7F4E3B1'
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and not(cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/tiff' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/png' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/jpeg' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/gif' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='application/pdf' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='text/xml')
[F-LIB174] Attribute mimeCode must be a value from the codelist
/[]
cac:Attachment/cac:ExternalReference and not(cac:Attachment/cac:ExternalReference/cbc:URI != '')
[F-LIB096] When using ExternalReference, URI is mandatory
/[]
normalize-space(cbc:LineID) != ''
[F-INV315] Invalid LineID. Must contain a value
/[]
count(cbc:DocumentType) = 0
[F-LIB170] DocumentType element must be excluded
/[]
count(cbc:DocumentTypeCode) = 0
[F-LIB172] DocumentTypeCode element must be excluded
/[]
cac:Attachment and cbc:XPath
[F-LIB169] Use either Attachment or XPath
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and cac:Attachment/cac:ExternalReference
[F-LIB171] Use either EmbeddedDocumentBinaryObject or ExternalReference
/[]
cbc:UUID and not(string-length(string(cbc:UUID)) = 36)
[F-LIB173] Invalid UUID. Must be of this form '6E09886B-DC6E-439F-82D1-7CCAC7F4E3B1'
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and not(cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/tiff' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/png' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/jpeg' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/gif' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='application/pdf' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='text/xml')
[F-LIB174] Attribute mimeCode must be a value from the codelist
/[]
cac:Attachment/cac:ExternalReference and not(cac:Attachment/cac:ExternalReference/cbc:URI != '')
[F-LIB096] When using ExternalReference, URI is mandatory
/[]
count(cac:DebitNoteDocumentReference) = 0
[F-INV303] DebitNoteDocumentReference class must be excluded
/[]
count(cac:AdditionalDocumentReference) = 0
[F-INV304] AdditionalDocumentReference class must be excluded
/[]
count(cac:BillingReferenceLine) > 1
[F-INV305] No more than one BillingReferenceLine class may be present
/[]
count(cbc:DocumentType) = 0
[F-LIB170] DocumentType element must be excluded
/[]
count(cbc:DocumentTypeCode) = 0
[F-LIB172] DocumentTypeCode element must be excluded
/[]
cac:Attachment and cbc:XPath
[F-LIB169] Use either Attachment or XPath
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and cac:Attachment/cac:ExternalReference
[F-LIB171] Use either EmbeddedDocumentBinaryObject or ExternalReference
/[]
cbc:UUID and not(string-length(string(cbc:UUID)) = 36)
[F-LIB173] Invalid UUID. Must be of this form '6E09886B-DC6E-439F-82D1-7CCAC7F4E3B1'
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and not(cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/tiff' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/png' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/jpeg' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/gif' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='application/pdf' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='text/xml')
[F-LIB174] Attribute mimeCode must be a value from the codelist
/[]
cac:Attachment/cac:ExternalReference and not(cac:Attachment/cac:ExternalReference/cbc:URI != '')
[F-LIB096] When using ExternalReference, URI is mandatory
/[]
count(cbc:DocumentType) = 0
[F-LIB170] DocumentType element must be excluded
/[]
count(cbc:DocumentTypeCode) = 0
[F-LIB172] DocumentTypeCode element must be excluded
/[]
cac:Attachment and cbc:XPath
[F-LIB169] Use either Attachment or XPath
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and cac:Attachment/cac:ExternalReference
[F-LIB171] Use either EmbeddedDocumentBinaryObject or ExternalReference
/[]
cbc:UUID and not(string-length(string(cbc:UUID)) = 36)
[F-LIB173] Invalid UUID. Must be of this form '6E09886B-DC6E-439F-82D1-7CCAC7F4E3B1'
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and not(cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/tiff' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/png' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/jpeg' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/gif' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='application/pdf' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='text/xml')
[F-LIB174] Attribute mimeCode must be a value from the codelist
/[]
cac:Attachment/cac:ExternalReference and not(cac:Attachment/cac:ExternalReference/cbc:URI != '')
[F-LIB096] When using ExternalReference, URI is mandatory
/[]
count(cbc:DocumentType) = 0
[F-LIB170] DocumentType element must be excluded
/[]
count(cbc:DocumentTypeCode) = 0
[F-LIB172] DocumentTypeCode element must be excluded
/[]
cac:Attachment and cbc:XPath
[F-LIB169] Use either Attachment or XPath
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and cac:Attachment/cac:ExternalReference
[F-LIB171] Use either EmbeddedDocumentBinaryObject or ExternalReference
/[]
cbc:UUID and not(string-length(string(cbc:UUID)) = 36)
[F-LIB173] Invalid UUID. Must be of this form '6E09886B-DC6E-439F-82D1-7CCAC7F4E3B1'
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and not(cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/tiff' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/png' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/jpeg' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/gif' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='application/pdf' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='text/xml')
[F-LIB174] Attribute mimeCode must be a value from the codelist
/[]
cac:Attachment/cac:ExternalReference and not(cac:Attachment/cac:ExternalReference/cbc:URI != '')
[F-LIB096] When using ExternalReference, URI is mandatory
/[]
count(cbc:DocumentType) = 0
[F-LIB170] DocumentType element must be excluded
/[]
count(cbc:DocumentTypeCode) = 0
[F-LIB172] DocumentTypeCode element must be excluded
/[]
cac:Attachment and cbc:XPath
[F-LIB169] Use either Attachment or XPath
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and cac:Attachment/cac:ExternalReference
[F-LIB171] Use either EmbeddedDocumentBinaryObject or ExternalReference
/[]
cbc:UUID and not(string-length(string(cbc:UUID)) = 36)
[F-LIB173] Invalid UUID. Must be of this form '6E09886B-DC6E-439F-82D1-7CCAC7F4E3B1'
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and not(cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/tiff' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/png' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/jpeg' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/gif' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='application/pdf' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='text/xml')
[F-LIB174] Attribute mimeCode must be a value from the codelist
/[]
cac:Attachment/cac:ExternalReference and not(cac:Attachment/cac:ExternalReference/cbc:URI != '')
[F-LIB096] When using ExternalReference, URI is mandatory
/[]
count(cbc:DocumentType) = 0
[F-LIB170] DocumentType element must be excluded
/[]
count(cbc:DocumentTypeCode) = 0
[F-LIB172] DocumentTypeCode element must be excluded
/[]
cac:Attachment and cbc:XPath
[F-LIB169] Use either Attachment or XPath
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and cac:Attachment/cac:ExternalReference
[F-LIB171] Use either EmbeddedDocumentBinaryObject or ExternalReference
/[]
cbc:UUID and not(string-length(string(cbc:UUID)) = 36)
[F-LIB173] Invalid UUID. Must be of this form '6E09886B-DC6E-439F-82D1-7CCAC7F4E3B1'
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and not(cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/tiff' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/png' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/jpeg' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/gif' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='application/pdf' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='text/xml')
[F-LIB174] Attribute mimeCode must be a value from the codelist
/[]
cac:Attachment/cac:ExternalReference and not(cac:Attachment/cac:ExternalReference/cbc:URI != '')
[F-LIB096] When using ExternalReference, URI is mandatory
/[]
count(cac:AllowanceCharge) > 1
[F-INV306] No more than one AllowanceCharge class may be present
/[]
count(cac:TaxTotal) = 0
[F-LIB224] TaxTotal class must be excluded
/[]
count(cac:PaymentMeans) = 0
[F-LIB225] PaymentMeans class must be excluded
/[]
count(cac:TaxCategory) = 1
[F-LIB226] One TaxCategory class must be present
/[]
cbc:MultiplierFactorNumeric and not(cbc:BaseAmount != '')
[F-LIB248] When MultiplierFactorNumeric is used, BaseAmount is mandatory
/[]
starts-with(cbc:MultiplierFactorNumeric,'-')
[F-LIB227] MultiplierFactorNumeric must be a positive number
/[]
cbc:MultiplierFactorNumeric and ((cbc:Amount - (cbc:BaseAmount * cbc:MultiplierFactorNumeric) < '-1.00') or (cbc:Amount - (cbc:BaseAmount * cbc:MultiplierFactorNumeric) > '1.00'))
[F-LIB228] Amount must equal BaseAmount * MultiplierFactorNumeric
/[]
cbc:AccountingCost and cbc:AccountingCostCode
[F-LIB021] Use either AccountingCost or AccountingCostCode
/[]
not(starts-with(.,'-'))
[F-LIB020] Invalid
. Must not be negative
/[]
not(starts-with(.,'-')) and . != 0
[F-LIB019] Invalid
. Must not be negative or zero
/[]
not(starts-with(.,'-')) and . != 0
[F-LIB019] Invalid
. Must not be negative or zero
/[]
count(cbc:TierRange) = 0
[F-LIB072] TierRange element must be excluded
/[]
count(cbc:TierRatePercent) = 0
[F-LIB073] TierRatePercent element must be excluded
/[]
normalize-space(cbc:ID) != ''
[F-LIB074] Invalid TaxCategory/ID. Must contain a value.
/[]
cbc:ID/@schemeID = $TaxCategory1_schemeID or cbc:ID/@schemeID = $TaxCategory2_schemeID
[F-LIB075] Invalid schemeID. Must be '
' or '
'
/[]
cbc:ID/@schemeAgencyID = $TaxCategory2_agencyID
[W-LIB229] Invalid schemeAgencyID. Must be '320'
/[]
(cbc:ID/@schemeID = $TaxCategory1_schemeID or cbc:ID/@schemeID = $TaxCategory2_schemeID) and not (contains($TaxCategory2, concat(',',cbc:ID,',')))
[F-LIB309] Invalid ID: '
'. Must be a value from the codelist
/[]
(cbc:Name != '') and not(contains(/doc:Invoice/cbc:ProfileID, 'nesubl.eu'))
[W-LIB230] Name should only be used within NES profiles
/[]
cbc:PerUnitAmount and cbc:Percent
[F-LIB231] Use either PerUnitAmount or Percent
/[]
cbc:PerUnitAmount and not(cbc:BaseUnitMeasure != '')
[F-LIB232] When PerUnitAmount is used, BaseUnitMeasure is mandatory
/[]
count(cac:JurisdictionRegionAddress/cbc:ID) = 0
[F-LIB041] ID element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:AddressTypeCode) = 0
[F-LIB042] AddressTypeCode element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Postbox) = 0
[F-LIB043] Postbox element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Floor) = 0
[F-LIB044] Floor element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Room) = 0
[F-LIB045] Room element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:StreetName) = 0
[F-LIB046] StreetName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:AdditionalStreetName) = 0
[F-LIB047] AdditionalStreetName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BlockName) = 0
[F-LIB048] BlockName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BuildingName) = 0
[F-LIB049] BuildingName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BuildingNumber) = 0
[F-LIB050] BuildingNumber element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:InhouseMail) = 0
[F-LIB051] InhouseMail element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Department) = 0
[F-LIB052] Department element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:MarkAttention) = 0
[F-LIB053] MarkAttention element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:MarkCare) = 0
[F-LIB054] MarkCare element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:PlotIdentification) = 0
[F-LIB055] PlotIdentification element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CitySubdivisionName) = 0
[F-LIB056] CitySubdivisionName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CityName) = 0
[F-LIB057] CityName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:PostalZone) = 0
[F-LIB058] PostalZone element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CountrySubentity) = 0
[F-LIB059] CountrySubentity element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CountrySubentityCode) = 0
[F-LIB060] CountrySubentityCode element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:TimezoneOffset) = 0
[F-LIB063] TimezoneOffset element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cac:AddressLine) = 0
[F-LIB234] AddressLine class must be excluded
/[]
count(cac:JurisdictionRegionAddress/cac:LocationCoordinate) = 0
[F-LIB064] LocationCoordinate class must be excluded
/[]
(cbc:ID = '63') and cbc:TaxTypeCode
[F-LIB067] TaxTypeCode is not allowed when TaxScheme/ID equals '63' (Moms)
/[]
normalize-space(cbc:ID) != ''
[F-LIB065] Invalid TaxScheme/ID. Must contain a value.
/[]
normalize-space(cbc:Name) != ''
[F-LIB066] Invalid Name. Must contain a value
/[]
not((cbc:ID = '63' or cbc:ID = 'VAT')) and not(contains($TaxType2, concat(',',cbc:TaxTypeCode,',')))
[F-LIB197] TaxTypeCode must be a value from the '
' codelist when TaxScheme/ID is different from '63' or 'VAT' (Moms)
/[]
cbc:ID/@schemeID = $TaxScheme_schemeID or cbc:ID/@schemeID = $TaxScheme2_schemeID or cbc:ID/@schemeID = $TaxScheme4_schemeID
[F-LIB070] Invalid schemeID. Must be '
' or '
' or '
'
/[]
(cbc:TaxTypeCode) and not((cbc:TaxTypeCode/@listID = $TaxType_listID) or (cbc:TaxTypeCode/@listID = $TaxType_listID2))
[F-LIB071] Invalid listID. Must be '
' or '
'
/[]
(cbc:ID = '63') and cbc:Name != 'Moms'
[F-LIB198] Name must equal 'Moms' when TaxScheme/ID equals '63' (Moms)
/[]
(cbc:ID != '63') and cbc:Name = 'Moms'
[F-LIB199] Name must correspond to the value of TaxScheme/ID
/[]
(cac:JurisdictionRegionAddress/cac:Country/cbc:IdentificationCode) and not(contains($CountryCode, concat(',',cac:JurisdictionRegionAddress/cac:Country/cbc:IdentificationCode,',')))
[F-LIB337] Invalid Country/IdentificationCode: '
'. Must be a value from the country codelist
/[]
(cac:JurisdictionRegionAddress) and cac:JurisdictionRegionAddress/cbc:AddressFormatCode != 'StructuredRegion'
[F-LIB233] The AddressFormatCode under JurisdictionRegionAddress must always equal 'StructuredRegion'
/[]
cbc:DocumentType or cbc:DocumentTypeCode
[F-LIB092] Use either DocumentType or DocumentTypeCode
/[]
cac:Attachment and cbc:XPath
[F-LIB093] Use either Attachment or XPath
/[]
cbc:DocumentType and cbc:DocumentTypeCode != 'ZZZ'
[F-LIB094] Use either DocumentType or DocumentTypeCode
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and cac:Attachment/cac:ExternalReference
[F-LIB095] Use either EmbeddedDocumentBinaryObject or ExternalReference
/[]
cbc:UUID and not(string-length(string(cbc:UUID)) = 36)
[F-LIB097] Invalid UUID. Must be of this form '6E09886B-DC6E-439F-82D1-7CCAC7F4E3B1'
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and not(cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/tiff' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/png' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/jpeg' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/gif' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='application/pdf' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='text/xml')
[F-LIB098] Attribute mimeCode must be a value from the codelist
/[]
cac:Attachment/cac:ExternalReference and not(cac:Attachment/cac:ExternalReference/cbc:URI != '')
[F-LIB279] When using ExternalReference, URI is mandatory
/[]
(cbc:DocumentTypeCode = 'PersonalSecure') and not (contains($PersonalSecure, concat(',',cbc:ID,',')))
[F-LIB335] When DocumentTypeCode equals 'PersonalSecure', the ID must be either '1', '2' or '3'.
/[]
count(cbc:ID) = 0
[F-INV155] ID element must be excluded
/[]
count(cbc:MinimumQuantity) = 0
[F-INV156] MinimumQuantity element must be excluded
/[]
count(cbc:MaximumQuantity) = 0
[F-INV157] MaximumQuantity element must be excluded
/[]
count(cbc:ActualDeliveryTime) = 0
[F-INV158] ActualDeliveryTime element must be excluded
/[]
count(cbc:LatestDeliveryDate) = 0
[F-INV159] LatestDeliveryDate element must be excluded
/[]
count(cbc:LatestDeliveryTime) = 0
[F-INV160] LatestDeliveryTime element must be excluded
/[]
count(cac:DeliveryAddress) = 0
[F-INV240] DeliveryAddress class must be excluded
/[]
count(cac:PromisedDeliveryPeriod) = 0
[F-INV161] PromisedDeliveryPeriod class must be excluded
/[]
count(cac:EstimatedDeliveryPeriod) = 0
[F-INV162] EstimatedDeliveryPeriod class must be excluded
/[]
not(cbc:ID) and not(cac:Address)
[F-INV241] Address is mandatory when ID is not specified
/[]
count(cbc:DurationMeasure) = 0
[F-LIB076] DurationMeasure element must be excluded
/[]
count(cbc:DescriptionCode) = 0
[F-LIB077] DescriptionCode element must be excluded
/[]
(cbc:StartTime) and (not(cbc:StartDate) or cbc:StartDate = '')
[F-LIB078] There must be a StartDate if you have a StartTime
/[]
(cbc:EndTime) and (not(cbc:EndDate) or cbc:EndDate = '')
[F-LIB079] There must be a EndDate if you have a EndTime
/[]
(cbc:StartDate and cbc:EndDate) and not(number(translate(cbc:EndDate,'-','')) > number(translate(cbc:StartDate,'-','')) or number(translate(cbc:EndDate,'-','')) = number(translate(cbc:StartDate,'-','')))
[F-LIB080] The EndDate must be greater or equal to the startdate
/[]
(cbc:StartTime and cbc:EndTime) and not(number(translate(cbc:EndTime,':','')) > number(translate(cbc:StartTime,':','')) or number(translate(cbc:EndTime,':','')) = number(translate(cbc:StartTime,':','')))
[F-LIB081] EndTime must be greater or equal to StartTime
/[]
count(../cbc:Description) > 1 and not(./@languageID)
[W-LIB222] The attribute languageID should be used when more than one Description element is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/@languageID = self::*/@languageID
[W-LIB223] Multilanguage error. Replicated Description elements with same languageID attribute value
/[]
count(cbc:BlockName) = 0
[F-LIB210] BlockName element must be excluded
/[]
count(cbc:TimezoneOffset) = 0
[F-LIB211] TimezoneOffset element must be excluded
/[]
count(cac:LocationCoordinate) = 0
[F-LIB212] LocationCoordinate class must be excluded
/[]
normalize-space(cbc:AddressFormatCode) != ''
[F-LIB025] Invalid AddressFormatCode. Must contain a value
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listID = 'urn:oioubl:codelist:addresstypecode-1.1')
[F-LIB204] Invalid listID. Must be 'urn:oioubl:codelist:addresstypecode-1.1'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listAgencyID = '320')
[F-LIB205] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode = 'Home' or cbc:AddressTypeCode = 'Business' )
[F-LIB206] Invalid AddressTypeCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' or cbc:AddressFormatCode/@listID = 'UN/ECE 3477'
[F-LIB026] Invalid listID. Must be either 'urn:oioubl:codelist:addressformatcode-1.1' or 'UN/ECE 3477'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode/@listAgencyID = '320')
[F-LIB207] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode = 'StructuredDK' or cbc:AddressFormatCode = 'StructuredLax' or cbc:AddressFormatCode = 'StructuredID' or cbc:AddressFormatCode = 'StructuredRegion' or cbc:AddressFormatCode = 'Unstructured')
[F-LIB027] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode/@listAgencyID = '6')
[F-LIB208] Invalid listAgencyID. Must be '6'
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode = '1' or cbc:AddressFormatCode = '2' or cbc:AddressFormatCode = '3' or cbc:AddressFormatCode = '4' or cbc:AddressFormatCode = '5' or cbc:AddressFormatCode = '6' or cbc:AddressFormatCode = '7' or cbc:AddressFormatCode = '8' or cbc:AddressFormatCode = '9')
[F-LIB209] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cac:Country and not(cac:Country/cbc:IdentificationCode != '')
[F-LIB213] When Country is used the element Country/IdentificationCode must be filled out
/[]
(cbc:AddressFormatCode = 'Unstructured') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB031] An Unstructured address is only allowed to have AddressLine elements
/[]
(cbc:AddressFormatCode = 'StructuredDK') and cac:AddressLine
[F-LIB032] AddressLine elements not allowed for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and (not(cbc:PostalZone) or normalize-space(cbc:PostalZone) = '')
[F-LIB033] PostalZone is mandatory for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:StreetName) or normalize-space(cbc:StreetName) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB034] There should be either a StreetName or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:BuildingNumber) or normalize-space(cbc:BuildingNumber) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB035] There should be either a BuildingNumber or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredLax') and cac:AddressLine
[F-LIB036] AddressLine elements not allowed for a StructuredLax address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (not(cbc:ID) or cbc:ID = '')
[F-LIB037] ID is required for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB038] Only the ID is used for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and ((not(cac:Country/cbc:IdentificationCode) or cac:Country/cbc:IdentificationCode = '') and (not(cbc:Region) or cbc:Region = '') and (not(cbc:District) or cbc:District = ''))
[F-LIB039] Region or District or Country/IdentificationCode is required for a StructuredRegion address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0')
[F-LIB040] Only Region, District, and/or Country/IdentificationCode can be used for a StructuredRegion address type
/[]
cbc:ID and not(string-length(cbc:ID/@schemeID)>0)
[F-LIB028] When ID is used under Address the attribute schemeID is used to give an addressregister
/[]
cbc:ID and not(cbc:ID/@schemeID)
[F-LIB029] schemeID attribute must be present on an address ID
/[]
cac:Country/cbc:IdentificationCode and not(contains($CountryCode, concat(',',cac:Country/cbc:IdentificationCode,',')))
[F-LIB301] Invalid Country/IdentificationCode: '
'. Must be a value from the codelist
/[]
count(cbc:DurationMeasure) = 0
[F-LIB076] DurationMeasure element must be excluded
/[]
count(cbc:DescriptionCode) = 0
[F-LIB077] DescriptionCode element must be excluded
/[]
(cbc:StartTime) and (not(cbc:StartDate) or cbc:StartDate = '')
[F-LIB078] There must be a StartDate if you have a StartTime
/[]
(cbc:EndTime) and (not(cbc:EndDate) or cbc:EndDate = '')
[F-LIB079] There must be a EndDate if you have a EndTime
/[]
(cbc:StartDate and cbc:EndDate) and not(number(translate(cbc:EndDate,'-','')) > number(translate(cbc:StartDate,'-','')) or number(translate(cbc:EndDate,'-','')) = number(translate(cbc:StartDate,'-','')))
[F-LIB080] The EndDate must be greater or equal to the startdate
/[]
(cbc:StartTime and cbc:EndTime) and not(number(translate(cbc:EndTime,':','')) > number(translate(cbc:StartTime,':','')) or number(translate(cbc:EndTime,':','')) = number(translate(cbc:StartTime,':','')))
[F-LIB081] EndTime must be greater or equal to StartTime
/[]
count(../cbc:Description) > 1 and not(./@languageID)
[W-LIB222] The attribute languageID should be used when more than one Description element is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/@languageID = self::*/@languageID
[W-LIB223] Multilanguage error. Replicated Description elements with same languageID attribute value
/[]
count(cbc:MarkCareIndicator) = 0
[F-LIB166] MarkCareIndicator element must be excluded
/[]
count(cbc:MarkAttentionIndicator) = 0
[F-LIB167] MarkAttentionIndicator element must be excluded
/[]
count(cac:AgentParty) = 0
[F-LIB168] AgentParty class must be excluded
/[]
(not(cac:PartyIdentification) or cac:PartyIdentification/cbc:ID = '') and (not(cac:PartyName) or cac:PartyName/cbc:Name = '')
[F-LIB022] PartyName/Name is mandatory if PartyIdentification/ID is not found
/[]
cbc:EndpointID and not(contains($EndpointID_schemeID, concat(',',cbc:EndpointID/@schemeID,',')))
[F-LIB179] Invalid schemeID: '
'. Must be a value from the codelist: '
'
/[]
(cbc:EndpointID/@schemeID = 'DK:CVR') and (string-length(cbc:EndpointID) != 10 or substring(cbc:EndpointID, 1, 2) != 'DK')
[F-LIB180] schemeID = DK:CVR, EndpointID must be a valid CVR number (DK12345678)
/[]
(cbc:EndpointID/@schemeID = 'DK:CPR') and not(string-length(cbc:EndpointID) = 10)
[F-LIB215] schemeID = DK:CPR, EndpointID must be a valid CPR number (1234560000)
/[]
(cbc:EndpointID/@schemeID = 'GLN') and not(string-length(cbc:EndpointID) = 13)
[F-LIB181] schemeID = GLN, EndpointID must be a valid GLN number (1234567890123)
/[]
(cbc:EndpointID/@schemeID = 'EAN') and not(string-length(cbc:EndpointID) = 13)
[F-LIB216] schemeID = EAN, EndpointID must be a valid EAN number (1234567890123)
/[]
count(cac:PartyLegalEntity) > 1
[F-INV300] No more than one PartyLegalEntity class may be present
/[]
not(contains($PartyID_schemeID, concat(',',cbc:ID/@schemeID,',')))
[F-LIB183] Invalid schemeID: '
'. Must be a value from the codelist: '
'
/[]
(cbc:ID/@schemeID = 'DK:CVR') and (string-length(cbc:ID) != 10 or substring(cbc:ID, 1, 2) != 'DK')
[F-LIB184] schemeID = DK:CVR, ID must be a valid CVR number (DK12345678)
/[]
(cbc:ID/@schemeID = 'DK:CPR') and not(string-length(cbc:ID) = 10)
[F-LIB217] schemeID = DK:CPR, ID must be a valid CPR number (1234560000)
/[]
(cbc:ID/@schemeID = 'GLN') and not(string-length(cbc:ID) = 13)
[F-LIB185] schemeID = GLN, ID must be a valid GLN number (1234567890123)
/[]
(cbc:ID/@schemeID = 'EAN') and not(string-length(cbc:ID) = 13)
[F-LIB218] schemeID = EAN, ID must be a valid EAN number (1234567890123)
/[]
(cbc:ID/@schemeID = 'DK:P') and not(string-length(cbc:ID) = 10)
[F-LIB287] schemeID = DK:P, ID must be a valid P number (1234567890)
/[]
count(../cac:PartyName) > 1 and not(./cbc:Name/@languageID)
[W-LIB219] The attribute Name@languageID should be used when more than one PartyName class is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/cbc:Name/@languageID = self::*/cbc:Name/@languageID
[W-LIB220] Multilanguage error. Replicated PartyName classes with same Name@languageID attribute value
/[]
count(cbc:BlockName) = 0
[F-LIB210] BlockName element must be excluded
/[]
count(cbc:TimezoneOffset) = 0
[F-LIB211] TimezoneOffset element must be excluded
/[]
count(cac:LocationCoordinate) = 0
[F-LIB212] LocationCoordinate class must be excluded
/[]
normalize-space(cbc:AddressFormatCode) != ''
[F-LIB025] Invalid AddressFormatCode. Must contain a value
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listID = 'urn:oioubl:codelist:addresstypecode-1.1')
[F-LIB204] Invalid listID. Must be 'urn:oioubl:codelist:addresstypecode-1.1'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listAgencyID = '320')
[F-LIB205] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode = 'Home' or cbc:AddressTypeCode = 'Business' )
[F-LIB206] Invalid AddressTypeCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' or cbc:AddressFormatCode/@listID = 'UN/ECE 3477'
[F-LIB026] Invalid listID. Must be either 'urn:oioubl:codelist:addressformatcode-1.1' or 'UN/ECE 3477'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode/@listAgencyID = '320')
[F-LIB207] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode = 'StructuredDK' or cbc:AddressFormatCode = 'StructuredLax' or cbc:AddressFormatCode = 'StructuredID' or cbc:AddressFormatCode = 'StructuredRegion' or cbc:AddressFormatCode = 'Unstructured')
[F-LIB027] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode/@listAgencyID = '6')
[F-LIB208] Invalid listAgencyID. Must be '6'
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode = '1' or cbc:AddressFormatCode = '2' or cbc:AddressFormatCode = '3' or cbc:AddressFormatCode = '4' or cbc:AddressFormatCode = '5' or cbc:AddressFormatCode = '6' or cbc:AddressFormatCode = '7' or cbc:AddressFormatCode = '8' or cbc:AddressFormatCode = '9')
[F-LIB209] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cac:Country and not(cac:Country/cbc:IdentificationCode != '')
[F-LIB213] When Country is used the element Country/IdentificationCode must be filled out
/[]
(cbc:AddressFormatCode = 'Unstructured') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB031] An Unstructured address is only allowed to have AddressLine elements
/[]
(cbc:AddressFormatCode = 'StructuredDK') and cac:AddressLine
[F-LIB032] AddressLine elements not allowed for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and (not(cbc:PostalZone) or normalize-space(cbc:PostalZone) = '')
[F-LIB033] PostalZone is mandatory for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:StreetName) or normalize-space(cbc:StreetName) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB034] There should be either a StreetName or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:BuildingNumber) or normalize-space(cbc:BuildingNumber) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB035] There should be either a BuildingNumber or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredLax') and cac:AddressLine
[F-LIB036] AddressLine elements not allowed for a StructuredLax address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (not(cbc:ID) or cbc:ID = '')
[F-LIB037] ID is required for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB038] Only the ID is used for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and ((not(cac:Country/cbc:IdentificationCode) or cac:Country/cbc:IdentificationCode = '') and (not(cbc:Region) or cbc:Region = '') and (not(cbc:District) or cbc:District = ''))
[F-LIB039] Region or District or Country/IdentificationCode is required for a StructuredRegion address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0')
[F-LIB040] Only Region, District, and/or Country/IdentificationCode can be used for a StructuredRegion address type
/[]
cbc:ID and not(string-length(cbc:ID/@schemeID)>0)
[F-LIB028] When ID is used under Address the attribute schemeID is used to give an addressregister
/[]
cbc:ID and not(cbc:ID/@schemeID)
[F-LIB029] schemeID attribute must be present on an address ID
/[]
cac:Country/cbc:IdentificationCode and not(contains($CountryCode, concat(',',cac:Country/cbc:IdentificationCode,',')))
[F-LIB301] Invalid Country/IdentificationCode: '
'. Must be a value from the codelist
/[]
(not(cbc:ID) or cbc:ID = '') and (count(cac:Address) = 0)
[F-LIB221] If ID not specified, Address is mandatory
/[]
count(cbc:DurationMeasure) = 0
[F-LIB076] DurationMeasure element must be excluded
/[]
count(cbc:DescriptionCode) = 0
[F-LIB077] DescriptionCode element must be excluded
/[]
(cbc:StartTime) and (not(cbc:StartDate) or cbc:StartDate = '')
[F-LIB078] There must be a StartDate if you have a StartTime
/[]
(cbc:EndTime) and (not(cbc:EndDate) or cbc:EndDate = '')
[F-LIB079] There must be a EndDate if you have a EndTime
/[]
(cbc:StartDate and cbc:EndDate) and not(number(translate(cbc:EndDate,'-','')) > number(translate(cbc:StartDate,'-','')) or number(translate(cbc:EndDate,'-','')) = number(translate(cbc:StartDate,'-','')))
[F-LIB080] The EndDate must be greater or equal to the startdate
/[]
(cbc:StartTime and cbc:EndTime) and not(number(translate(cbc:EndTime,':','')) > number(translate(cbc:StartTime,':','')) or number(translate(cbc:EndTime,':','')) = number(translate(cbc:StartTime,':','')))
[F-LIB081] EndTime must be greater or equal to StartTime
/[]
count(../cbc:Description) > 1 and not(./@languageID)
[W-LIB222] The attribute languageID should be used when more than one Description element is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/@languageID = self::*/@languageID
[W-LIB223] Multilanguage error. Replicated Description elements with same languageID attribute value
/[]
count(cbc:BlockName) = 0
[F-LIB210] BlockName element must be excluded
/[]
count(cbc:TimezoneOffset) = 0
[F-LIB211] TimezoneOffset element must be excluded
/[]
count(cac:LocationCoordinate) = 0
[F-LIB212] LocationCoordinate class must be excluded
/[]
normalize-space(cbc:AddressFormatCode) != ''
[F-LIB025] Invalid AddressFormatCode. Must contain a value
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listID = 'urn:oioubl:codelist:addresstypecode-1.1')
[F-LIB204] Invalid listID. Must be 'urn:oioubl:codelist:addresstypecode-1.1'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listAgencyID = '320')
[F-LIB205] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode = 'Home' or cbc:AddressTypeCode = 'Business' )
[F-LIB206] Invalid AddressTypeCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' or cbc:AddressFormatCode/@listID = 'UN/ECE 3477'
[F-LIB026] Invalid listID. Must be either 'urn:oioubl:codelist:addressformatcode-1.1' or 'UN/ECE 3477'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode/@listAgencyID = '320')
[F-LIB207] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode = 'StructuredDK' or cbc:AddressFormatCode = 'StructuredLax' or cbc:AddressFormatCode = 'StructuredID' or cbc:AddressFormatCode = 'StructuredRegion' or cbc:AddressFormatCode = 'Unstructured')
[F-LIB027] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode/@listAgencyID = '6')
[F-LIB208] Invalid listAgencyID. Must be '6'
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode = '1' or cbc:AddressFormatCode = '2' or cbc:AddressFormatCode = '3' or cbc:AddressFormatCode = '4' or cbc:AddressFormatCode = '5' or cbc:AddressFormatCode = '6' or cbc:AddressFormatCode = '7' or cbc:AddressFormatCode = '8' or cbc:AddressFormatCode = '9')
[F-LIB209] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cac:Country and not(cac:Country/cbc:IdentificationCode != '')
[F-LIB213] When Country is used the element Country/IdentificationCode must be filled out
/[]
(cbc:AddressFormatCode = 'Unstructured') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB031] An Unstructured address is only allowed to have AddressLine elements
/[]
(cbc:AddressFormatCode = 'StructuredDK') and cac:AddressLine
[F-LIB032] AddressLine elements not allowed for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and (not(cbc:PostalZone) or normalize-space(cbc:PostalZone) = '')
[F-LIB033] PostalZone is mandatory for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:StreetName) or normalize-space(cbc:StreetName) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB034] There should be either a StreetName or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:BuildingNumber) or normalize-space(cbc:BuildingNumber) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB035] There should be either a BuildingNumber or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredLax') and cac:AddressLine
[F-LIB036] AddressLine elements not allowed for a StructuredLax address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (not(cbc:ID) or cbc:ID = '')
[F-LIB037] ID is required for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB038] Only the ID is used for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and ((not(cac:Country/cbc:IdentificationCode) or cac:Country/cbc:IdentificationCode = '') and (not(cbc:Region) or cbc:Region = '') and (not(cbc:District) or cbc:District = ''))
[F-LIB039] Region or District or Country/IdentificationCode is required for a StructuredRegion address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0')
[F-LIB040] Only Region, District, and/or Country/IdentificationCode can be used for a StructuredRegion address type
/[]
cbc:ID and not(string-length(cbc:ID/@schemeID)>0)
[F-LIB028] When ID is used under Address the attribute schemeID is used to give an addressregister
/[]
cbc:ID and not(cbc:ID/@schemeID)
[F-LIB029] schemeID attribute must be present on an address ID
/[]
cac:Country/cbc:IdentificationCode and not(contains($CountryCode, concat(',',cac:Country/cbc:IdentificationCode,',')))
[F-LIB301] Invalid Country/IdentificationCode: '
'. Must be a value from the codelist
/[]
count(cbc:TaxLevelCode) = 0
[F-LIB192] TaxLevelCode element must be excluded
/[]
normalize-space(cbc:CompanyID) != ''
[F-LIB193] Invalid CompanyID. Must contain a value
/[]
cbc:CompanyID/@schemeID = 'DK:SE' or cbc:CompanyID/@schemeID = 'ZZZ'
[F-LIB195] Invalid schemeID. Must be a valid scheme for PartyTaxScheme/CompanyID
/[]
(cbc:CompanyID/@schemeID = 'DK:SE') and (string-length(normalize-space(cbc:CompanyID)) != 10 or substring(cbc:CompanyID, 1, 2) != 'DK')
[F-LIB196] schemeID = DK:SE, CompanyID must be a valid SE number (DK12345678)
/[]
count(cac:JurisdictionRegionAddress/cbc:ID) = 0
[F-LIB041] ID element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:AddressTypeCode) = 0
[F-LIB042] AddressTypeCode element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Postbox) = 0
[F-LIB043] Postbox element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Floor) = 0
[F-LIB044] Floor element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Room) = 0
[F-LIB045] Room element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:StreetName) = 0
[F-LIB046] StreetName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:AdditionalStreetName) = 0
[F-LIB047] AdditionalStreetName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BlockName) = 0
[F-LIB048] BlockName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BuildingName) = 0
[F-LIB049] BuildingName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BuildingNumber) = 0
[F-LIB050] BuildingNumber element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:InhouseMail) = 0
[F-LIB051] InhouseMail element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Department) = 0
[F-LIB052] Department element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:MarkAttention) = 0
[F-LIB053] MarkAttention element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:MarkCare) = 0
[F-LIB054] MarkCare element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:PlotIdentification) = 0
[F-LIB055] PlotIdentification element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CitySubdivisionName) = 0
[F-LIB056] CitySubdivisionName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CityName) = 0
[F-LIB057] CityName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:PostalZone) = 0
[F-LIB058] PostalZone element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CountrySubentity) = 0
[F-LIB059] CountrySubentity element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CountrySubentityCode) = 0
[F-LIB060] CountrySubentityCode element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:TimezoneOffset) = 0
[F-LIB063] TimezoneOffset element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cac:AddressLine) = 0
[F-LIB234] AddressLine class must be excluded
/[]
count(cac:JurisdictionRegionAddress/cac:LocationCoordinate) = 0
[F-LIB064] LocationCoordinate class must be excluded
/[]
(cbc:ID = '63') and cbc:TaxTypeCode
[F-LIB067] TaxTypeCode is not allowed when TaxScheme/ID equals '63' (Moms)
/[]
normalize-space(cbc:ID) != ''
[F-LIB065] Invalid TaxScheme/ID. Must contain a value.
/[]
normalize-space(cbc:Name) != ''
[F-LIB066] Invalid Name. Must contain a value
/[]
not((cbc:ID = '63' or cbc:ID = 'VAT')) and not(contains($TaxType2, concat(',',cbc:TaxTypeCode,',')))
[F-LIB197] TaxTypeCode must be a value from the '
' codelist when TaxScheme/ID is different from '63' or 'VAT' (Moms)
/[]
cbc:ID/@schemeID = $TaxScheme_schemeID or cbc:ID/@schemeID = $TaxScheme2_schemeID or cbc:ID/@schemeID = $TaxScheme4_schemeID
[F-LIB070] Invalid schemeID. Must be '
' or '
' or '
'
/[]
(cbc:TaxTypeCode) and not((cbc:TaxTypeCode/@listID = $TaxType_listID) or (cbc:TaxTypeCode/@listID = $TaxType_listID2))
[F-LIB071] Invalid listID. Must be '
' or '
'
/[]
(cbc:ID = '63') and cbc:Name != 'Moms'
[F-LIB198] Name must equal 'Moms' when TaxScheme/ID equals '63' (Moms)
/[]
(cbc:ID != '63') and cbc:Name = 'Moms'
[F-LIB199] Name must correspond to the value of TaxScheme/ID
/[]
(cac:JurisdictionRegionAddress/cac:Country/cbc:IdentificationCode) and not(contains($CountryCode, concat(',',cac:JurisdictionRegionAddress/cac:Country/cbc:IdentificationCode,',')))
[F-LIB337] Invalid Country/IdentificationCode: '
'. Must be a value from the country codelist
/[]
(cac:JurisdictionRegionAddress) and cac:JurisdictionRegionAddress/cbc:AddressFormatCode != 'StructuredRegion'
[F-LIB233] The AddressFormatCode under JurisdictionRegionAddress must always equal 'StructuredRegion'
/[]
count(cac:CorporateRegistrationScheme) = 0
[F-LIB186] CorporateRegistrationScheme class must be excluded
/[]
normalize-space(cbc:CompanyID) != ''
[F-LIB187] Invalid CompanyID. Must contain a value
/[]
cbc:CompanyID/@schemeID = 'DK:CVR' or cbc:CompanyID/@schemeID = 'DK:CPR' or cbc:CompanyID/@schemeID = 'ZZZ'
[F-LIB189] Invalid schemeID. Must be a valid scheme for PartyLegalEntity/CompanyID
/[]
(cbc:CompanyID/@schemeID = 'DK:CVR') and (string-length(normalize-space(cbc:CompanyID)) != 10 or substring(cbc:CompanyID, 1, 2) != 'DK')
[F-LIB190] schemeID = DK:CVR, CompanyID must be a valid CVR number (DK12345678)
/[]
(cbc:CompanyID/@schemeID = 'DK:CPR') and not(string-length(cbc:CompanyID) = 10)
[F-LIB191] schemeID = DK:CPR, CompanyID must be a valid CPR number (1234560000)
/[]
(not(cbc:ID) or cbc:ID = '') and (not(cbc:Name) or cbc:Name = '') and (not(cbc:Telephone) or cbc:Telephone = '') and (not(cbc:Telefax) or cbc:Telefax = '') and (not(cbc:ElectronicMail) or cbc:ElectronicMail = '') and (not(cbc:Note) or cbc:Note = '') and not(cac:OtherCommunication)
[F-LIB235] At least one field in the Contact class should be specified
/[]
cac:OtherCommunication/cbc:ChannelCode and cac:OtherCommunication/cbc:Channel
[F-LIB236] Use either ChannelCode or Channel
/[]
cac:OtherCommunication and not(normalize-space(cac:OtherCommunication/cbc:Value) != '')
[F-LIB237] Invalid Value. Must contain a value
/[]
(not(cbc:FamilyName) or cbc:FamilyName = '') and (not(cbc:FirstName) or cbc:FirstName = '')
[F-LIB024] There must be a FirstName if the FamilyName is not present
/[]
count(cac:TaxTotal) = 0
[F-LIB224] TaxTotal class must be excluded
/[]
count(cac:PaymentMeans) = 0
[F-LIB225] PaymentMeans class must be excluded
/[]
count(cac:TaxCategory) = 1
[F-LIB226] One TaxCategory class must be present
/[]
cbc:MultiplierFactorNumeric and not(cbc:BaseAmount != '')
[F-LIB248] When MultiplierFactorNumeric is used, BaseAmount is mandatory
/[]
starts-with(cbc:MultiplierFactorNumeric,'-')
[F-LIB227] MultiplierFactorNumeric must be a positive number
/[]
cbc:MultiplierFactorNumeric and ((cbc:Amount - (cbc:BaseAmount * cbc:MultiplierFactorNumeric) < '-1.00') or (cbc:Amount - (cbc:BaseAmount * cbc:MultiplierFactorNumeric) > '1.00'))
[F-LIB228] Amount must equal BaseAmount * MultiplierFactorNumeric
/[]
cbc:AccountingCost and cbc:AccountingCostCode
[F-LIB021] Use either AccountingCost or AccountingCostCode
/[]
not(starts-with(.,'-'))
[F-LIB020] Invalid
. Must not be negative
/[]
. != 0
[F-LIB317] Invalid
. Must not be zero
/[]
. != 0
[F-LIB317] Invalid
. Must not be zero
/[]
count(cbc:TierRange) = 0
[F-LIB072] TierRange element must be excluded
/[]
count(cbc:TierRatePercent) = 0
[F-LIB073] TierRatePercent element must be excluded
/[]
normalize-space(cbc:ID) != ''
[F-LIB074] Invalid TaxCategory/ID. Must contain a value.
/[]
cbc:ID/@schemeID = $TaxCategory1_schemeID or cbc:ID/@schemeID = $TaxCategory2_schemeID
[F-LIB075] Invalid schemeID. Must be '
' or '
'
/[]
cbc:ID/@schemeAgencyID = $TaxCategory2_agencyID
[W-LIB229] Invalid schemeAgencyID. Must be '320'
/[]
(cbc:ID/@schemeID = $TaxCategory1_schemeID or cbc:ID/@schemeID = $TaxCategory2_schemeID) and not (contains($TaxCategory2, concat(',',cbc:ID,',')))
[F-LIB309] Invalid ID: '
'. Must be a value from the codelist
/[]
(cbc:Name != '') and not(contains(/doc:Invoice/cbc:ProfileID, 'nesubl.eu'))
[W-LIB230] Name should only be used within NES profiles
/[]
cbc:PerUnitAmount and cbc:Percent
[F-LIB231] Use either PerUnitAmount or Percent
/[]
cbc:PerUnitAmount and not(cbc:BaseUnitMeasure != '')
[F-LIB232] When PerUnitAmount is used, BaseUnitMeasure is mandatory
/[]
count(cac:JurisdictionRegionAddress/cbc:ID) = 0
[F-LIB041] ID element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:AddressTypeCode) = 0
[F-LIB042] AddressTypeCode element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Postbox) = 0
[F-LIB043] Postbox element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Floor) = 0
[F-LIB044] Floor element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Room) = 0
[F-LIB045] Room element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:StreetName) = 0
[F-LIB046] StreetName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:AdditionalStreetName) = 0
[F-LIB047] AdditionalStreetName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BlockName) = 0
[F-LIB048] BlockName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BuildingName) = 0
[F-LIB049] BuildingName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BuildingNumber) = 0
[F-LIB050] BuildingNumber element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:InhouseMail) = 0
[F-LIB051] InhouseMail element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Department) = 0
[F-LIB052] Department element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:MarkAttention) = 0
[F-LIB053] MarkAttention element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:MarkCare) = 0
[F-LIB054] MarkCare element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:PlotIdentification) = 0
[F-LIB055] PlotIdentification element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CitySubdivisionName) = 0
[F-LIB056] CitySubdivisionName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CityName) = 0
[F-LIB057] CityName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:PostalZone) = 0
[F-LIB058] PostalZone element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CountrySubentity) = 0
[F-LIB059] CountrySubentity element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CountrySubentityCode) = 0
[F-LIB060] CountrySubentityCode element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:TimezoneOffset) = 0
[F-LIB063] TimezoneOffset element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cac:AddressLine) = 0
[F-LIB234] AddressLine class must be excluded
/[]
count(cac:JurisdictionRegionAddress/cac:LocationCoordinate) = 0
[F-LIB064] LocationCoordinate class must be excluded
/[]
(cbc:ID = '63') and cbc:TaxTypeCode
[F-LIB067] TaxTypeCode is not allowed when TaxScheme/ID equals '63' (Moms)
/[]
normalize-space(cbc:ID) != ''
[F-LIB065] Invalid TaxScheme/ID. Must contain a value.
/[]
normalize-space(cbc:Name) != ''
[F-LIB066] Invalid Name. Must contain a value
/[]
not((cbc:ID = '63' or cbc:ID = 'VAT')) and not(contains($TaxType2, concat(',',cbc:TaxTypeCode,',')))
[F-LIB197] TaxTypeCode must be a value from the '
' codelist when TaxScheme/ID is different from '63' or 'VAT' (Moms)
/[]
cbc:ID/@schemeID = $TaxScheme_schemeID or cbc:ID/@schemeID = $TaxScheme2_schemeID or cbc:ID/@schemeID = $TaxScheme4_schemeID
[F-LIB070] Invalid schemeID. Must be '
' or '
' or '
'
/[]
(cbc:TaxTypeCode) and not((cbc:TaxTypeCode/@listID = $TaxType_listID) or (cbc:TaxTypeCode/@listID = $TaxType_listID2))
[F-LIB071] Invalid listID. Must be '
' or '
'
/[]
(cbc:ID = '63') and cbc:Name != 'Moms'
[F-LIB198] Name must equal 'Moms' when TaxScheme/ID equals '63' (Moms)
/[]
(cbc:ID != '63') and cbc:Name = 'Moms'
[F-LIB199] Name must correspond to the value of TaxScheme/ID
/[]
(cac:JurisdictionRegionAddress/cac:Country/cbc:IdentificationCode) and not(contains($CountryCode, concat(',',cac:JurisdictionRegionAddress/cac:Country/cbc:IdentificationCode,',')))
[F-LIB337] Invalid Country/IdentificationCode: '
'. Must be a value from the country codelist
/[]
(cac:JurisdictionRegionAddress) and cac:JurisdictionRegionAddress/cbc:AddressFormatCode != 'StructuredRegion'
[F-LIB233] The AddressFormatCode under JurisdictionRegionAddress must always equal 'StructuredRegion'
/[]
count(../cac:TaxTotal[cac:TaxSubtotal/cac:TaxCategory/cac:TaxScheme/cbc:ID = '63' or cac:TaxSubtotal/cac:TaxCategory/cac:TaxScheme/cbc:ID = 'VAT']) = 1
[F-LIB306] One TaxTotal class must contain VAT (Moms)
/[]
cac:TaxSubtotal/cac:TaxCategory/cac:TaxScheme/cbc:ID = ./following-sibling::*/cac:TaxSubtotal/cac:TaxCategory/cac:TaxScheme/cbc:ID
[F-LIB314] Using the same TaxScheme.ID in two different TaxTotal classes is not allowed.
/[]
string-length(substring-after(cbc:TaxAmount, '.')) != 2
[F-LIB250] Invalid TaxAmount. Must have 2 decimals
/[]
cbc:RoundingAmount and (cbc:RoundingAmount = 0)
[F-LIB251] Invalid RoundingAmount. Must not be zero
/[]
cbc:RoundingAmount and string-length(substring-after(cbc:RoundingAmount, '.')) != 2
[F-LIB252] Invalid RoundingAmount. Must have 2 decimals
/[]
cbc:TaxEvidenceIndicator = 'false' and /doc:Invoice/cbc:InvoiceTypeCode != '325'
[F-LIB253] Can only be false if proforma invoice (InvoiceTypeCode = '325')
/[]
count(cbc:Percent) = 0
[F-LIB254] Percent element must be excluded
/[]
count(cbc:BaseUnitMeasure) = 0
[F-LIB255] BaseUnitMeasure element must be excluded
/[]
count(cbc:PerUnitAmount) = 0
[F-LIB256] PerUnitAmount element must be excluded
/[]
count(cbc:TierRange) = 0
[F-LIB257] TierRange element must be excluded
/[]
count(cbc:TierRatePercent) = 0
[F-LIB258] TierRatePercent element must be excluded
/[]
normalize-space(cbc:TaxableAmount) != ''
[F-LIB259] Invalid TaxableAmount. Must contain a value
/[]
$ID63 and cac:TaxCategory/cac:TaxScheme/cbc:ID = ./following-sibling::*/cac:TaxCategory/cac:TaxScheme/cbc:ID and cac:TaxCategory/cbc:ID = ./following-sibling::*/cac:TaxCategory/cbc:ID
[F-LIB315] Specifying the same TaxSubtotal.TaxCategory.ID in one TaxTotal class is not allowed
/[]
cac:TaxCategory/cac:TaxScheme/cbc:ID != ./following-sibling::*/cac:TaxCategory/cac:TaxScheme/cbc:ID
[F-LIB316] Specifying different TaxScheme.ID in same TaxTotal class is not allowed.
/[]
string-length(substring-after(cbc:TaxableAmount, '.')) != 2
[F-LIB261] Invalid TaxableAmount. Must have 2 decimals
/[]
string-length(substring-after(cbc:TaxAmount, '.')) != 2
[F-LIB263] Invalid TaxAmount. Must have 2 decimals
/[]
cbc:CalculationSequenceNumeric and (starts-with(cbc:CalculationSequenceNumeric,'-') or cbc:CalculationSequenceNumeric = 0)
[F-LIB264] Invalid CalculationSequenceNumeric. Must not be negative or zero
/[]
/doc:Invoice/cac:TaxExchangeRate and count(cbc:TransactionCurrencyTaxAmount) = 0
[F-LIB265] if Tax Currency is different from Document Currency, TransactionCurrencyTaxAmount is mandatory
/[]
cbc:TransactionCurrencyTaxAmount and (starts-with(cbc:TransactionCurrencyTaxAmount,'-'))
[F-LIB266] Invalid TransactionCurrencyTaxAmount. Must not be negative
/[]
cbc:TransactionCurrencyTaxAmount and string-length(substring-after(cbc:TransactionCurrencyTaxAmount, '.')) != 2
[F-LIB267] Invalid TransactionCurrencyTaxAmount. Must have 2 decimals
/[]
count(cbc:TierRange) = 0
[F-LIB072] TierRange element must be excluded
/[]
count(cbc:TierRatePercent) = 0
[F-LIB073] TierRatePercent element must be excluded
/[]
normalize-space(cbc:ID) != ''
[F-LIB074] Invalid TaxCategory/ID. Must contain a value.
/[]
cbc:ID/@schemeID = $TaxCategory1_schemeID or cbc:ID/@schemeID = $TaxCategory2_schemeID
[F-LIB075] Invalid schemeID. Must be '
' or '
'
/[]
cbc:ID/@schemeAgencyID = $TaxCategory2_agencyID
[W-LIB229] Invalid schemeAgencyID. Must be '320'
/[]
(cbc:ID/@schemeID = $TaxCategory1_schemeID or cbc:ID/@schemeID = $TaxCategory2_schemeID) and not (contains($TaxCategory2, concat(',',cbc:ID,',')))
[F-LIB309] Invalid ID: '
'. Must be a value from the codelist
/[]
(cbc:Name != '') and not(contains(/doc:Invoice/cbc:ProfileID, 'nesubl.eu'))
[W-LIB230] Name should only be used within NES profiles
/[]
cbc:PerUnitAmount and cbc:Percent
[F-LIB231] Use either PerUnitAmount or Percent
/[]
cbc:PerUnitAmount and not(cbc:BaseUnitMeasure != '')
[F-LIB232] When PerUnitAmount is used, BaseUnitMeasure is mandatory
/[]
count(cac:JurisdictionRegionAddress/cbc:ID) = 0
[F-LIB041] ID element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:AddressTypeCode) = 0
[F-LIB042] AddressTypeCode element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Postbox) = 0
[F-LIB043] Postbox element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Floor) = 0
[F-LIB044] Floor element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Room) = 0
[F-LIB045] Room element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:StreetName) = 0
[F-LIB046] StreetName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:AdditionalStreetName) = 0
[F-LIB047] AdditionalStreetName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BlockName) = 0
[F-LIB048] BlockName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BuildingName) = 0
[F-LIB049] BuildingName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BuildingNumber) = 0
[F-LIB050] BuildingNumber element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:InhouseMail) = 0
[F-LIB051] InhouseMail element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Department) = 0
[F-LIB052] Department element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:MarkAttention) = 0
[F-LIB053] MarkAttention element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:MarkCare) = 0
[F-LIB054] MarkCare element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:PlotIdentification) = 0
[F-LIB055] PlotIdentification element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CitySubdivisionName) = 0
[F-LIB056] CitySubdivisionName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CityName) = 0
[F-LIB057] CityName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:PostalZone) = 0
[F-LIB058] PostalZone element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CountrySubentity) = 0
[F-LIB059] CountrySubentity element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CountrySubentityCode) = 0
[F-LIB060] CountrySubentityCode element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:TimezoneOffset) = 0
[F-LIB063] TimezoneOffset element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cac:AddressLine) = 0
[F-LIB234] AddressLine class must be excluded
/[]
count(cac:JurisdictionRegionAddress/cac:LocationCoordinate) = 0
[F-LIB064] LocationCoordinate class must be excluded
/[]
(cbc:ID = '63') and cbc:TaxTypeCode
[F-LIB067] TaxTypeCode is not allowed when TaxScheme/ID equals '63' (Moms)
/[]
normalize-space(cbc:ID) != ''
[F-LIB065] Invalid TaxScheme/ID. Must contain a value.
/[]
normalize-space(cbc:Name) != ''
[F-LIB066] Invalid Name. Must contain a value
/[]
not((cbc:ID = '63' or cbc:ID = 'VAT')) and not(contains($TaxType2, concat(',',cbc:TaxTypeCode,',')))
[F-LIB197] TaxTypeCode must be a value from the '
' codelist when TaxScheme/ID is different from '63' or 'VAT' (Moms)
/[]
cbc:ID/@schemeID = $TaxScheme_schemeID or cbc:ID/@schemeID = $TaxScheme2_schemeID or cbc:ID/@schemeID = $TaxScheme4_schemeID
[F-LIB070] Invalid schemeID. Must be '
' or '
' or '
'
/[]
(cbc:TaxTypeCode) and not((cbc:TaxTypeCode/@listID = $TaxType_listID) or (cbc:TaxTypeCode/@listID = $TaxType_listID2))
[F-LIB071] Invalid listID. Must be '
' or '
'
/[]
(cbc:ID = '63') and cbc:Name != 'Moms'
[F-LIB198] Name must equal 'Moms' when TaxScheme/ID equals '63' (Moms)
/[]
(cbc:ID != '63') and cbc:Name = 'Moms'
[F-LIB199] Name must correspond to the value of TaxScheme/ID
/[]
(cac:JurisdictionRegionAddress/cac:Country/cbc:IdentificationCode) and not(contains($CountryCode, concat(',',cac:JurisdictionRegionAddress/cac:Country/cbc:IdentificationCode,',')))
[F-LIB337] Invalid Country/IdentificationCode: '
'. Must be a value from the country codelist
/[]
(cac:JurisdictionRegionAddress) and cac:JurisdictionRegionAddress/cbc:AddressFormatCode != 'StructuredRegion'
[F-LIB233] The AddressFormatCode under JurisdictionRegionAddress must always equal 'StructuredRegion'
/[]
count(cac:OriginCountry) = 0
[F-INV211] OriginCountry class must be excluded
/[]
normalize-space(cbc:Name) != ''
[F-INV163] Invalid Name. Must contain a value
/[]
count(cbc:Keyword) > 1
[F-INV307] No more than one Keyword element may be present
/[]
count(cbc:BrandName) > 1
[F-INV308] No more than one BrandName element may be present
/[]
count(cbc:ModelName) > 1
[F-INV309] No more than one ModelName element may be present
/[]
count(cac:ManufacturersItemIdentification) > 1
[F-INV312] No more than one ManufacturersItemIdentification class may be present
/[]
count(cac:AdditionalItemIdentification) > 1
[F-INV313] No more than one AdditionalItemIdentification class may be present
/[]
count(cac:ItemSpecificationDocumentReference) > 1
[F-INV321] No more than one ItemSpecificationDocumentReference class may be present
/[]
count(../cbc:Description) > 1 and not(./@languageID)
[W-LIB222] The attribute languageID should be used when more than one Description element is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/@languageID = self::*/@languageID
[W-LIB223] Multilanguage error. Replicated Description elements with same languageID attribute value
/[]
count(cac:PhysicalAttribute) = 0
[F-LIB175] PhysicalAttribute class must be excluded
/[]
count(cac:MeasurementDimension) = 0
[F-LIB176] MeasurementDimension class must be excluded
/[]
normalize-space(cbc:ID) != ''
[F-LIB177] Invalid ItemIdentification/ID. Must contain a value.
/[]
normalize-space(cbc:ID) != ''
[F-INV167] Invalid SellersItemIdentification/ID. Must contain a value
/[]
normalize-space(cbc:Description) != ''
[F-INV171] Invalid Description. Must contain a value
/[]
normalize-space(cbc:AttributeID) != ''
[F-INV170] Invalid AttributeID. Must contain a value
/[]
count(../cbc:Description) > 1 and not(./@languageID)
[W-LIB222] The attribute languageID should be used when more than one Description element is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/@languageID = self::*/@languageID
[W-LIB223] Multilanguage error. Replicated Description elements with same languageID attribute value
/[]
normalize-space(cbc:AttributeID) != ''
[F-INV227] Invalid AttributeID. Must contain a value
/[]
count(../cbc:Description) > 1 and not(./@languageID)
[W-LIB222] The attribute languageID should be used when more than one Description element is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/@languageID = self::*/@languageID
[W-LIB223] Multilanguage error. Replicated Description elements with same languageID attribute value
/[]
count(cac:PhysicalAttribute) = 0
[F-LIB175] PhysicalAttribute class must be excluded
/[]
count(cac:MeasurementDimension) = 0
[F-LIB176] MeasurementDimension class must be excluded
/[]
normalize-space(cbc:ID) != ''
[F-LIB177] Invalid ItemIdentification/ID. Must contain a value.
/[]
count(cac:PhysicalAttribute) = 0
[F-LIB175] PhysicalAttribute class must be excluded
/[]
count(cac:MeasurementDimension) = 0
[F-LIB176] MeasurementDimension class must be excluded
/[]
normalize-space(cbc:ID) != ''
[F-LIB177] Invalid ItemIdentification/ID. Must contain a value.
/[]
count(cac:PhysicalAttribute) = 0
[F-LIB175] PhysicalAttribute class must be excluded
/[]
count(cac:MeasurementDimension) = 0
[F-LIB176] MeasurementDimension class must be excluded
/[]
normalize-space(cbc:ID) != ''
[F-LIB177] Invalid ItemIdentification/ID. Must contain a value.
/[]
count(cac:PhysicalAttribute) = 0
[F-LIB175] PhysicalAttribute class must be excluded
/[]
count(cac:MeasurementDimension) = 0
[F-LIB176] MeasurementDimension class must be excluded
/[]
normalize-space(cbc:ID) != ''
[F-LIB177] Invalid ItemIdentification/ID. Must contain a value.
/[]
count(cbc:DocumentType) = 0
[F-LIB170] DocumentType element must be excluded
/[]
count(cbc:DocumentTypeCode) = 0
[F-LIB172] DocumentTypeCode element must be excluded
/[]
cac:Attachment and cbc:XPath
[F-LIB169] Use either Attachment or XPath
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and cac:Attachment/cac:ExternalReference
[F-LIB171] Use either EmbeddedDocumentBinaryObject or ExternalReference
/[]
cbc:UUID and not(string-length(string(cbc:UUID)) = 36)
[F-LIB173] Invalid UUID. Must be of this form '6E09886B-DC6E-439F-82D1-7CCAC7F4E3B1'
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and not(cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/tiff' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/png' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/jpeg' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/gif' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='application/pdf' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='text/xml')
[F-LIB174] Attribute mimeCode must be a value from the codelist
/[]
cac:Attachment/cac:ExternalReference and not(cac:Attachment/cac:ExternalReference/cbc:URI != '')
[F-LIB096] When using ExternalReference, URI is mandatory
/[]
cbc:DocumentType or cbc:DocumentTypeCode
[F-LIB092] Use either DocumentType or DocumentTypeCode
/[]
cac:Attachment and cbc:XPath
[F-LIB093] Use either Attachment or XPath
/[]
cbc:DocumentType and cbc:DocumentTypeCode != 'ZZZ'
[F-LIB094] Use either DocumentType or DocumentTypeCode
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and cac:Attachment/cac:ExternalReference
[F-LIB095] Use either EmbeddedDocumentBinaryObject or ExternalReference
/[]
cbc:UUID and not(string-length(string(cbc:UUID)) = 36)
[F-LIB097] Invalid UUID. Must be of this form '6E09886B-DC6E-439F-82D1-7CCAC7F4E3B1'
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and not(cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/tiff' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/png' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/jpeg' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/gif' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='application/pdf' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='text/xml')
[F-LIB098] Attribute mimeCode must be a value from the codelist
/[]
cac:Attachment/cac:ExternalReference and not(cac:Attachment/cac:ExternalReference/cbc:URI != '')
[F-LIB279] When using ExternalReference, URI is mandatory
/[]
(cbc:DocumentTypeCode = 'PersonalSecure') and not (contains($PersonalSecure, concat(',',cbc:ID,',')))
[F-LIB335] When DocumentTypeCode equals 'PersonalSecure', the ID must be either '1', '2' or '3'.
/[]
cbc:ItemClassificationCode and not(cbc:ItemClassificationCode/@listID='UNSPSC')
[W-INV184] Use a Valid UNSPSC 7.0401 code
/[]
count(../cbc:Description) > 1 and not(./@languageID)
[W-LIB222] The attribute languageID should be used when more than one Description element is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/@languageID = self::*/@languageID
[W-LIB223] Multilanguage error. Replicated Description elements with same languageID attribute value
/[]
cbc:DocumentType or cbc:DocumentTypeCode
[F-LIB092] Use either DocumentType or DocumentTypeCode
/[]
cac:Attachment and cbc:XPath
[F-LIB093] Use either Attachment or XPath
/[]
cbc:DocumentType and cbc:DocumentTypeCode != 'ZZZ'
[F-LIB094] Use either DocumentType or DocumentTypeCode
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and cac:Attachment/cac:ExternalReference
[F-LIB095] Use either EmbeddedDocumentBinaryObject or ExternalReference
/[]
cbc:UUID and not(string-length(string(cbc:UUID)) = 36)
[F-LIB097] Invalid UUID. Must be of this form '6E09886B-DC6E-439F-82D1-7CCAC7F4E3B1'
/[]
cac:Attachment/cbc:EmbeddedDocumentBinaryObject and not(cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/tiff' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/png' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/jpeg' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='image/gif' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='application/pdf' or cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@mimeCode='text/xml')
[F-LIB098] Attribute mimeCode must be a value from the codelist
/[]
cac:Attachment/cac:ExternalReference and not(cac:Attachment/cac:ExternalReference/cbc:URI != '')
[F-LIB279] When using ExternalReference, URI is mandatory
/[]
(cbc:DocumentTypeCode = 'PersonalSecure') and not (contains($PersonalSecure, concat(',',cbc:ID,',')))
[F-LIB335] When DocumentTypeCode equals 'PersonalSecure', the ID must be either '1', '2' or '3'.
/[]
count(cbc:TierRange) = 0
[F-LIB072] TierRange element must be excluded
/[]
count(cbc:TierRatePercent) = 0
[F-LIB073] TierRatePercent element must be excluded
/[]
normalize-space(cbc:ID) != ''
[F-LIB074] Invalid TaxCategory/ID. Must contain a value.
/[]
cbc:ID/@schemeID = $TaxCategory1_schemeID or cbc:ID/@schemeID = $TaxCategory2_schemeID
[F-LIB075] Invalid schemeID. Must be '
' or '
'
/[]
cbc:ID/@schemeAgencyID = $TaxCategory2_agencyID
[W-LIB229] Invalid schemeAgencyID. Must be '320'
/[]
(cbc:ID/@schemeID = $TaxCategory1_schemeID or cbc:ID/@schemeID = $TaxCategory2_schemeID) and not (contains($TaxCategory2, concat(',',cbc:ID,',')))
[F-LIB309] Invalid ID: '
'. Must be a value from the codelist
/[]
(cbc:Name != '') and not(contains(/doc:Invoice/cbc:ProfileID, 'nesubl.eu'))
[W-LIB230] Name should only be used within NES profiles
/[]
cbc:PerUnitAmount and cbc:Percent
[F-LIB231] Use either PerUnitAmount or Percent
/[]
cbc:PerUnitAmount and not(cbc:BaseUnitMeasure != '')
[F-LIB232] When PerUnitAmount is used, BaseUnitMeasure is mandatory
/[]
count(cac:JurisdictionRegionAddress/cbc:ID) = 0
[F-LIB041] ID element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:AddressTypeCode) = 0
[F-LIB042] AddressTypeCode element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Postbox) = 0
[F-LIB043] Postbox element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Floor) = 0
[F-LIB044] Floor element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Room) = 0
[F-LIB045] Room element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:StreetName) = 0
[F-LIB046] StreetName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:AdditionalStreetName) = 0
[F-LIB047] AdditionalStreetName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BlockName) = 0
[F-LIB048] BlockName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BuildingName) = 0
[F-LIB049] BuildingName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BuildingNumber) = 0
[F-LIB050] BuildingNumber element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:InhouseMail) = 0
[F-LIB051] InhouseMail element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Department) = 0
[F-LIB052] Department element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:MarkAttention) = 0
[F-LIB053] MarkAttention element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:MarkCare) = 0
[F-LIB054] MarkCare element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:PlotIdentification) = 0
[F-LIB055] PlotIdentification element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CitySubdivisionName) = 0
[F-LIB056] CitySubdivisionName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CityName) = 0
[F-LIB057] CityName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:PostalZone) = 0
[F-LIB058] PostalZone element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CountrySubentity) = 0
[F-LIB059] CountrySubentity element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CountrySubentityCode) = 0
[F-LIB060] CountrySubentityCode element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:TimezoneOffset) = 0
[F-LIB063] TimezoneOffset element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cac:AddressLine) = 0
[F-LIB234] AddressLine class must be excluded
/[]
count(cac:JurisdictionRegionAddress/cac:LocationCoordinate) = 0
[F-LIB064] LocationCoordinate class must be excluded
/[]
(cbc:ID = '63') and cbc:TaxTypeCode
[F-LIB067] TaxTypeCode is not allowed when TaxScheme/ID equals '63' (Moms)
/[]
normalize-space(cbc:ID) != ''
[F-LIB065] Invalid TaxScheme/ID. Must contain a value.
/[]
normalize-space(cbc:Name) != ''
[F-LIB066] Invalid Name. Must contain a value
/[]
not((cbc:ID = '63' or cbc:ID = 'VAT')) and not(contains($TaxType2, concat(',',cbc:TaxTypeCode,',')))
[F-LIB197] TaxTypeCode must be a value from the '
' codelist when TaxScheme/ID is different from '63' or 'VAT' (Moms)
/[]
cbc:ID/@schemeID = $TaxScheme_schemeID or cbc:ID/@schemeID = $TaxScheme2_schemeID or cbc:ID/@schemeID = $TaxScheme4_schemeID
[F-LIB070] Invalid schemeID. Must be '
' or '
' or '
'
/[]
(cbc:TaxTypeCode) and not((cbc:TaxTypeCode/@listID = $TaxType_listID) or (cbc:TaxTypeCode/@listID = $TaxType_listID2))
[F-LIB071] Invalid listID. Must be '
' or '
'
/[]
(cbc:ID = '63') and cbc:Name != 'Moms'
[F-LIB198] Name must equal 'Moms' when TaxScheme/ID equals '63' (Moms)
/[]
(cbc:ID != '63') and cbc:Name = 'Moms'
[F-LIB199] Name must correspond to the value of TaxScheme/ID
/[]
(cac:JurisdictionRegionAddress/cac:Country/cbc:IdentificationCode) and not(contains($CountryCode, concat(',',cac:JurisdictionRegionAddress/cac:Country/cbc:IdentificationCode,',')))
[F-LIB337] Invalid Country/IdentificationCode: '
'. Must be a value from the country codelist
/[]
(cac:JurisdictionRegionAddress) and cac:JurisdictionRegionAddress/cbc:AddressFormatCode != 'StructuredRegion'
[F-LIB233] The AddressFormatCode under JurisdictionRegionAddress must always equal 'StructuredRegion'
/[]
normalize-space(cbc:Name) != ''
[F-INV234] Invalid Name. Must contain a value
/[]
normalize-space(cbc:Value) != ''
[F-INV235] Invalid Value. Must contain a value
/[]
count(cbc:DurationMeasure) = 0
[F-LIB076] DurationMeasure element must be excluded
/[]
count(cbc:DescriptionCode) = 0
[F-LIB077] DescriptionCode element must be excluded
/[]
(cbc:StartTime) and (not(cbc:StartDate) or cbc:StartDate = '')
[F-LIB078] There must be a StartDate if you have a StartTime
/[]
(cbc:EndTime) and (not(cbc:EndDate) or cbc:EndDate = '')
[F-LIB079] There must be a EndDate if you have a EndTime
/[]
(cbc:StartDate and cbc:EndDate) and not(number(translate(cbc:EndDate,'-','')) > number(translate(cbc:StartDate,'-','')) or number(translate(cbc:EndDate,'-','')) = number(translate(cbc:StartDate,'-','')))
[F-LIB080] The EndDate must be greater or equal to the startdate
/[]
(cbc:StartTime and cbc:EndTime) and not(number(translate(cbc:EndTime,':','')) > number(translate(cbc:StartTime,':','')) or number(translate(cbc:EndTime,':','')) = number(translate(cbc:StartTime,':','')))
[F-LIB081] EndTime must be greater or equal to StartTime
/[]
count(../cbc:Description) > 1 and not(./@languageID)
[W-LIB222] The attribute languageID should be used when more than one Description element is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/@languageID = self::*/@languageID
[W-LIB223] Multilanguage error. Replicated Description elements with same languageID attribute value
/[]
normalize-space(cbc:ID) != ''
[F-INV185] Invalid Item Property Group ID in InvoiceLine. Must contain a value
/[]
count(cbc:BlockName) = 0
[F-LIB210] BlockName element must be excluded
/[]
count(cbc:TimezoneOffset) = 0
[F-LIB211] TimezoneOffset element must be excluded
/[]
count(cac:LocationCoordinate) = 0
[F-LIB212] LocationCoordinate class must be excluded
/[]
normalize-space(cbc:AddressFormatCode) != ''
[F-LIB025] Invalid AddressFormatCode. Must contain a value
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listID = 'urn:oioubl:codelist:addresstypecode-1.1')
[F-LIB204] Invalid listID. Must be 'urn:oioubl:codelist:addresstypecode-1.1'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode/@listAgencyID = '320')
[F-LIB205] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressTypeCode and not(cbc:AddressTypeCode = 'Home' or cbc:AddressTypeCode = 'Business' )
[F-LIB206] Invalid AddressTypeCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' or cbc:AddressFormatCode/@listID = 'UN/ECE 3477'
[F-LIB026] Invalid listID. Must be either 'urn:oioubl:codelist:addressformatcode-1.1' or 'UN/ECE 3477'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode/@listAgencyID = '320')
[F-LIB207] Invalid listAgencyID. Must be '320'
/[]
cbc:AddressFormatCode/@listID = 'urn:oioubl:codelist:addressformatcode-1.1' and not(cbc:AddressFormatCode = 'StructuredDK' or cbc:AddressFormatCode = 'StructuredLax' or cbc:AddressFormatCode = 'StructuredID' or cbc:AddressFormatCode = 'StructuredRegion' or cbc:AddressFormatCode = 'Unstructured')
[F-LIB027] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode/@listAgencyID = '6')
[F-LIB208] Invalid listAgencyID. Must be '6'
/[]
cbc:AddressFormatCode/@listID = 'UN/ECE 3477' and not(cbc:AddressFormatCode = '1' or cbc:AddressFormatCode = '2' or cbc:AddressFormatCode = '3' or cbc:AddressFormatCode = '4' or cbc:AddressFormatCode = '5' or cbc:AddressFormatCode = '6' or cbc:AddressFormatCode = '7' or cbc:AddressFormatCode = '8' or cbc:AddressFormatCode = '9')
[F-LIB209] Invalid AddressFormatCode. Must be a value from the codelist
/[]
cac:Country and not(cac:Country/cbc:IdentificationCode != '')
[F-LIB213] When Country is used the element Country/IdentificationCode must be filled out
/[]
(cbc:AddressFormatCode = 'Unstructured') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB031] An Unstructured address is only allowed to have AddressLine elements
/[]
(cbc:AddressFormatCode = 'StructuredDK') and cac:AddressLine
[F-LIB032] AddressLine elements not allowed for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and (not(cbc:PostalZone) or normalize-space(cbc:PostalZone) = '')
[F-LIB033] PostalZone is mandatory for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:StreetName) or normalize-space(cbc:StreetName) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB034] There should be either a StreetName or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredDK') and ((not(cbc:BuildingNumber) or normalize-space(cbc:BuildingNumber) = '') and (not(cbc:Postbox) or normalize-space(cbc:Postbox) = ''))
[F-LIB035] There should be either a BuildingNumber or a Postbox for a StructuredDK address type
/[]
(cbc:AddressFormatCode = 'StructuredLax') and cac:AddressLine
[F-LIB036] AddressLine elements not allowed for a StructuredLax address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (not(cbc:ID) or cbc:ID = '')
[F-LIB037] ID is required for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredID') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0' or count(cac:Country) != '0')
[F-LIB038] Only the ID is used for a StructuredID address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and ((not(cac:Country/cbc:IdentificationCode) or cac:Country/cbc:IdentificationCode = '') and (not(cbc:Region) or cbc:Region = '') and (not(cbc:District) or cbc:District = ''))
[F-LIB039] Region or District or Country/IdentificationCode is required for a StructuredRegion address type
/[]
(cbc:AddressFormatCode = 'StructuredRegion') and (count(cbc:StreetName) != '0' or count(cbc:BuildingNumber) != '0' or count(cbc:CityName) != '0' or count(cbc:PostalZone) != '0')
[F-LIB040] Only Region, District, and/or Country/IdentificationCode can be used for a StructuredRegion address type
/[]
cbc:ID and not(string-length(cbc:ID/@schemeID)>0)
[F-LIB028] When ID is used under Address the attribute schemeID is used to give an addressregister
/[]
cbc:ID and not(cbc:ID/@schemeID)
[F-LIB029] schemeID attribute must be present on an address ID
/[]
cac:Country/cbc:IdentificationCode and not(contains($CountryCode, concat(',',cac:Country/cbc:IdentificationCode,',')))
[F-LIB301] Invalid Country/IdentificationCode: '
'. Must be a value from the codelist
/[]
normalize-space(cbc:Name) != ''
[F-INV228] Invalid Name. Must contain a value
/[]
normalize-space(cbc:Value) != ''
[F-INV310] Invalid Value. Must contain a value
/[]
count(cbc:DurationMeasure) = 0
[F-LIB076] DurationMeasure element must be excluded
/[]
count(cbc:DescriptionCode) = 0
[F-LIB077] DescriptionCode element must be excluded
/[]
(cbc:StartTime) and (not(cbc:StartDate) or cbc:StartDate = '')
[F-LIB078] There must be a StartDate if you have a StartTime
/[]
(cbc:EndTime) and (not(cbc:EndDate) or cbc:EndDate = '')
[F-LIB079] There must be a EndDate if you have a EndTime
/[]
(cbc:StartDate and cbc:EndDate) and not(number(translate(cbc:EndDate,'-','')) > number(translate(cbc:StartDate,'-','')) or number(translate(cbc:EndDate,'-','')) = number(translate(cbc:StartDate,'-','')))
[F-LIB080] The EndDate must be greater or equal to the startdate
/[]
(cbc:StartTime and cbc:EndTime) and not(number(translate(cbc:EndTime,':','')) > number(translate(cbc:StartTime,':','')) or number(translate(cbc:EndTime,':','')) = number(translate(cbc:StartTime,':','')))
[F-LIB081] EndTime must be greater or equal to StartTime
/[]
count(../cbc:Description) > 1 and not(./@languageID)
[W-LIB222] The attribute languageID should be used when more than one Description element is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/@languageID = self::*/@languageID
[W-LIB223] Multilanguage error. Replicated Description elements with same languageID attribute value
/[]
normalize-space(cbc:ID) != ''
[F-INV311] Invalid Item Property Group ID in InvoiceLine. Must contain a value
/[]
normalize-space(cbc:Name) != ''
[F-INV316] Invalid Name. Must contain a value
/[]
normalize-space(cbc:Value) != ''
[F-INV317] Invalid Value. Must contain a value
/[]
count(cbc:DurationMeasure) = 0
[F-LIB076] DurationMeasure element must be excluded
/[]
count(cbc:DescriptionCode) = 0
[F-LIB077] DescriptionCode element must be excluded
/[]
(cbc:StartTime) and (not(cbc:StartDate) or cbc:StartDate = '')
[F-LIB078] There must be a StartDate if you have a StartTime
/[]
(cbc:EndTime) and (not(cbc:EndDate) or cbc:EndDate = '')
[F-LIB079] There must be a EndDate if you have a EndTime
/[]
(cbc:StartDate and cbc:EndDate) and not(number(translate(cbc:EndDate,'-','')) > number(translate(cbc:StartDate,'-','')) or number(translate(cbc:EndDate,'-','')) = number(translate(cbc:StartDate,'-','')))
[F-LIB080] The EndDate must be greater or equal to the startdate
/[]
(cbc:StartTime and cbc:EndTime) and not(number(translate(cbc:EndTime,':','')) > number(translate(cbc:StartTime,':','')) or number(translate(cbc:EndTime,':','')) = number(translate(cbc:StartTime,':','')))
[F-LIB081] EndTime must be greater or equal to StartTime
/[]
count(../cbc:Description) > 1 and not(./@languageID)
[W-LIB222] The attribute languageID should be used when more than one Description element is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/@languageID = self::*/@languageID
[W-LIB223] Multilanguage error. Replicated Description elements with same languageID attribute value
/[]
normalize-space(cbc:ID) != ''
[F-INV318] Invalid Item Property Group ID in InvoiceLine. Must contain a value
/[]
cac:ValidityPeriod
[W-INV322] The ValidityPeriod class may only be used when Preordering is the case
/[]
not(./@unitCode)
[F-LIB007] Attribute unitCode must be used for
/[]
string-length(./@unitCode)>1
[W-LIB008] The value of unitCode attribute should be a valid UOM measure
/[]
contains($Quantity_unitCode, concat(',',./@unitCode,','))
[F-LIB318] Invalid unitCode: '
'. Must be a value from the codelist.
/[]
not(starts-with(.,'-')) and . != 0
[F-LIB019] Invalid
. Must not be negative or zero
/[]
count(../cbc:PriceChangeReason) > 1 and not(./@languageID)
[W-INV194] The attribute languageID should be used when more than one PriceChangeReason element is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/@languageID = self::*/@languageID
[W-INV195] Multilanguage error. Replicated PriceChangeReason elements with same languageID attribute value
/[]
./@listID = 'UN/ECE 5387'
[F-INV196] Invalid listID. Must be 'UN/ECE 5387'
/[]
not(starts-with(.,'-')) and . != 0
[F-LIB019] Invalid
. Must not be negative or zero
/[]
count(cbc:DurationMeasure) = 0
[F-LIB076] DurationMeasure element must be excluded
/[]
count(cbc:DescriptionCode) = 0
[F-LIB077] DescriptionCode element must be excluded
/[]
(cbc:StartTime) and (not(cbc:StartDate) or cbc:StartDate = '')
[F-LIB078] There must be a StartDate if you have a StartTime
/[]
(cbc:EndTime) and (not(cbc:EndDate) or cbc:EndDate = '')
[F-LIB079] There must be a EndDate if you have a EndTime
/[]
(cbc:StartDate and cbc:EndDate) and not(number(translate(cbc:EndDate,'-','')) > number(translate(cbc:StartDate,'-','')) or number(translate(cbc:EndDate,'-','')) = number(translate(cbc:StartDate,'-','')))
[F-LIB080] The EndDate must be greater or equal to the startdate
/[]
(cbc:StartTime and cbc:EndTime) and not(number(translate(cbc:EndTime,':','')) > number(translate(cbc:StartTime,':','')) or number(translate(cbc:EndTime,':','')) = number(translate(cbc:StartTime,':','')))
[F-LIB081] EndTime must be greater or equal to StartTime
/[]
count(../cbc:Description) > 1 and not(./@languageID)
[W-LIB222] The attribute languageID should be used when more than one Description element is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/@languageID = self::*/@languageID
[W-LIB223] Multilanguage error. Replicated Description elements with same languageID attribute value
/[]
count(cac:TaxTotal) = 0
[F-LIB268] TaxTotal class must be excluded
/[]
count(cac:PaymentMeans) = 0
[F-LIB269] PaymentMeans class must be excluded
/[]
count(cbc:AccountingCostCode) = 0
[F-LIB273] AccountingCostCode element must be excluded
/[]
count(cbc:AccountingCost) = 0
[F-LIB274] AccountingCost element must be excluded
/[]
cbc:MultiplierFactorNumeric and not(cbc:BaseAmount != '')
[F-LIB270] When MultiplierFactorNumeric is used, BaseAmount is mandatory
/[]
starts-with(cbc:MultiplierFactorNumeric,'-')
[F-LIB271] MultiplierFactorNumeric must be a positive number
/[]
cbc:MultiplierFactorNumeric and ((cbc:Amount - (cbc:BaseAmount * cbc:MultiplierFactorNumeric) < '-1.00') or (cbc:Amount - (cbc:BaseAmount * cbc:MultiplierFactorNumeric) > '1.00'))
[F-LIB228] Amount must equal BaseAmount * MultiplierFactorNumeric
/[]
not(starts-with(.,'-'))
[F-LIB020] Invalid
. Must not be negative
/[]
. != 0
[F-LIB317] Invalid
. Must not be zero
/[]
. != 0
[F-LIB317] Invalid
. Must not be zero
/[]
count(cbc:TierRange) = 0
[F-LIB072] TierRange element must be excluded
/[]
count(cbc:TierRatePercent) = 0
[F-LIB073] TierRatePercent element must be excluded
/[]
normalize-space(cbc:ID) != ''
[F-LIB074] Invalid TaxCategory/ID. Must contain a value.
/[]
cbc:ID/@schemeID = $TaxCategory1_schemeID or cbc:ID/@schemeID = $TaxCategory2_schemeID
[F-LIB075] Invalid schemeID. Must be '
' or '
'
/[]
cbc:ID/@schemeAgencyID = $TaxCategory2_agencyID
[W-LIB229] Invalid schemeAgencyID. Must be '320'
/[]
(cbc:ID/@schemeID = $TaxCategory1_schemeID or cbc:ID/@schemeID = $TaxCategory2_schemeID) and not (contains($TaxCategory2, concat(',',cbc:ID,',')))
[F-LIB309] Invalid ID: '
'. Must be a value from the codelist
/[]
(cbc:Name != '') and not(contains(/doc:Invoice/cbc:ProfileID, 'nesubl.eu'))
[W-LIB230] Name should only be used within NES profiles
/[]
cbc:PerUnitAmount and cbc:Percent
[F-LIB231] Use either PerUnitAmount or Percent
/[]
cbc:PerUnitAmount and not(cbc:BaseUnitMeasure != '')
[F-LIB232] When PerUnitAmount is used, BaseUnitMeasure is mandatory
/[]
count(cac:JurisdictionRegionAddress/cbc:ID) = 0
[F-LIB041] ID element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:AddressTypeCode) = 0
[F-LIB042] AddressTypeCode element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Postbox) = 0
[F-LIB043] Postbox element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Floor) = 0
[F-LIB044] Floor element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Room) = 0
[F-LIB045] Room element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:StreetName) = 0
[F-LIB046] StreetName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:AdditionalStreetName) = 0
[F-LIB047] AdditionalStreetName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BlockName) = 0
[F-LIB048] BlockName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BuildingName) = 0
[F-LIB049] BuildingName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:BuildingNumber) = 0
[F-LIB050] BuildingNumber element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:InhouseMail) = 0
[F-LIB051] InhouseMail element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:Department) = 0
[F-LIB052] Department element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:MarkAttention) = 0
[F-LIB053] MarkAttention element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:MarkCare) = 0
[F-LIB054] MarkCare element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:PlotIdentification) = 0
[F-LIB055] PlotIdentification element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CitySubdivisionName) = 0
[F-LIB056] CitySubdivisionName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CityName) = 0
[F-LIB057] CityName element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:PostalZone) = 0
[F-LIB058] PostalZone element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CountrySubentity) = 0
[F-LIB059] CountrySubentity element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:CountrySubentityCode) = 0
[F-LIB060] CountrySubentityCode element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cbc:TimezoneOffset) = 0
[F-LIB063] TimezoneOffset element must be excluded
/[]
count(cac:JurisdictionRegionAddress/cac:AddressLine) = 0
[F-LIB234] AddressLine class must be excluded
/[]
count(cac:JurisdictionRegionAddress/cac:LocationCoordinate) = 0
[F-LIB064] LocationCoordinate class must be excluded
/[]
(cbc:ID = '63') and cbc:TaxTypeCode
[F-LIB067] TaxTypeCode is not allowed when TaxScheme/ID equals '63' (Moms)
/[]
normalize-space(cbc:ID) != ''
[F-LIB065] Invalid TaxScheme/ID. Must contain a value.
/[]
normalize-space(cbc:Name) != ''
[F-LIB066] Invalid Name. Must contain a value
/[]
not((cbc:ID = '63' or cbc:ID = 'VAT')) and not(contains($TaxType2, concat(',',cbc:TaxTypeCode,',')))
[F-LIB197] TaxTypeCode must be a value from the '
' codelist when TaxScheme/ID is different from '63' or 'VAT' (Moms)
/[]
cbc:ID/@schemeID = $TaxScheme_schemeID or cbc:ID/@schemeID = $TaxScheme2_schemeID or cbc:ID/@schemeID = $TaxScheme4_schemeID
[F-LIB070] Invalid schemeID. Must be '
' or '
' or '
'
/[]
(cbc:TaxTypeCode) and not((cbc:TaxTypeCode/@listID = $TaxType_listID) or (cbc:TaxTypeCode/@listID = $TaxType_listID2))
[F-LIB071] Invalid listID. Must be '
' or '
'
/[]
(cbc:ID = '63') and cbc:Name != 'Moms'
[F-LIB198] Name must equal 'Moms' when TaxScheme/ID equals '63' (Moms)
/[]
(cbc:ID != '63') and cbc:Name = 'Moms'
[F-LIB199] Name must correspond to the value of TaxScheme/ID
/[]
(cac:JurisdictionRegionAddress/cac:Country/cbc:IdentificationCode) and not(contains($CountryCode, concat(',',cac:JurisdictionRegionAddress/cac:Country/cbc:IdentificationCode,',')))
[F-LIB337] Invalid Country/IdentificationCode: '
'. Must be a value from the country codelist
/[]
(cac:JurisdictionRegionAddress) and cac:JurisdictionRegionAddress/cbc:AddressFormatCode != 'StructuredRegion'
[F-LIB233] The AddressFormatCode under JurisdictionRegionAddress must always equal 'StructuredRegion'
/[]