/
*:
[namespace-uri()='
']
[
]
/
@sch:schema
@*[local-name()='
' and namespace-uri()='
']
/
[
]
/@
.
U
U
U.
n
U.
_
_
Checking OIOUBL-2.02 CreditNote, 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(*) = 'CreditNote'
[F-CRN001] Root element must be CreditNote
/[]
namespace-uri(*) = 'urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2'
[F-CRN204] The documenttype does not match an OIOUBL CreditNote 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-CRN002] There must be an OrderReference class for this profileID
/[]
count(cac:TaxRepresentativeParty) = 0
[F-CRN165] TaxRepresentativeParty class must be excluded
/[]
cbc:DocumentCurrencyCode != ''
[F-CRN004] Invalid DocumentCurrencyCode. Must contain a value
/[]
count(cac:TaxTotal) != 0
[F-CRN005] One or more TaxTotal class must be present
/[]
normalize-space(cbc:ID) != ''
[F-CRN006] Invalid CreditNote/ID (Creditnote number). Must contain a value.
/[]
cbc:AccountingCost and cbc:AccountingCostCode
[F-LIB021] Use either AccountingCost or AccountingCostCode
/[]
count(cac:InvoicePeriod) > 1
[F-CRN159] 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'
/[]
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:CreditNoteLine/cbc:LineExtensionAmount[@currencyID][@currencyID!=string(current())]
[F-CRN007] There is a LineExtensionAmount for one or more CreditNoteLines where the currencyID does not equal the DocumentCurrencyCode
/[]
/*/cac:LegalMonetaryTotal/cbc:LineExtensionAmount[@currencyID][@currencyID!=string(current())]
[F-CRN008] There is a LineExtensionAmount where the currencyID does not equal the DocumentCurrencyCode
/[]
/*/cac:LegalMonetaryTotal/cbc:PayableAmount[@currencyID][@currencyID!=string(current())]
[F-CRN009] 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-CRN010] There is a TaxAmount where the currencyID does not equal the TaxCurrencyCode
/[]
.='DKK' or . ='EUR'
[F-CRN011] TaxCurrencyCode must be either DKK or EUR
/[]
count(/*/cac:TaxExchangeRate) != 0
[F-CRN012] One TaxExchangeRate class must be present when TaxCurrencyCode element is used
/[]
count(/*/cac:TaxTotal/cac:TaxSubtotal/cbc:TransactionCurrencyTaxAmount) != 0
[F-CRN013] 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:CreditNoteLine/cac:Price/cbc:PriceAmount[@currencyID][@currencyID!=string(current())]
[F-CRN014] There is a PriceAmount where the currencyID does not equal the PricingCurrencyCode
/[]
count(/*/cac:PricingExchangeRate) != 0
[F-CRN015] 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-CRN016] 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-CRN017] 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:ReferenceID) != ''
[F-CRN161] Invalid ReferenceID. Must contain a value
/[]
cbc:ResponseCode and cbc:Description
[F-CRN188] Use either ResponseCode or Description
/[]
./@listID != $Discrepancy_listID or not(./@listID)
[F-CRN018] Invalid listID. Must be '
'
/[]
./@listAgencyID != $Discrepancy_agencyID or not(./@listAgencyID)
[F-CRN160] Invalid listAgencyID. Must be '
'
/[]
contains($Discrepancy, concat(',',.,','))
[F-CRN193] Invalid ResponseCode: '
'. Must be a value from the codelist
/[]
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-CRN022] 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-CRN023] DebitNoteDocumentReference class must be excluded
/[]
count(cac:AdditionalDocumentReference) = 0
[F-CRN024] AdditionalDocumentReference class must be excluded
/[]
count(cac:BillingReferenceLine) = 0
[F-CRN162] 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
/[]
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-CRN025] 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-CRN163] 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'.
/[]
count(cbc:DataSendingCapability) = 0
[F-CRN026] DataSendingCapability element must be excluded
/[]
count(cac:Party) = 1
[F-CRN027] 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-CRN028] Invalid EndpointID. Must contain a value
/[]
count(cac:PartyLegalEntity) = 1
[F-CRN031] 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-CRN039] 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-CRN040] Invalid EndpointID. Must contain a value
/[]
count(cac:Contact) = 1
[F-CRN042] 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-CRN164] 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-CRN047] 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-CRN166] 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
/[]
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) = 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'
/[]
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-CRN066] Invalid LineExtensionAmount. Must contain a value
/[]
count(../cac:AllowanceCharge[cbc:ChargeIndicator='false']) and not(cbc:AllowanceTotalAmount)
[F-CRN068] AllowanceTotalAmount is mandatory when AllowanceCharge classes (with ChargeIndicator='false') are present
/[]
count(../cac:AllowanceCharge[cbc:ChargeIndicator='true']) and not(cbc:ChargeTotalAmount)
[F-CRN069] ChargeTotalAmount is mandatory when AllowanceCharge classes (with ChargeIndicator='true') are present
/[]
count(../cac:TaxTotal/cbc:RoundingAmount) and not(cbc:PayableRoundingAmount)
[F-CRN071] PayableRoundingAmount is mandatory when TaxTotal/RoundingAmount elements are present
/[]
((cbc:LineExtensionAmount - sum(../cac:CreditNoteLine/cbc:LineExtensionAmount)) > '0.0055') or ((cbc:LineExtensionAmount - sum(../cac:CreditNoteLine/cbc:LineExtensionAmount)) < '-0.0055')
[F-CRN072] The sum of CreditNoteLine/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-CRN073] 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-CRN074] 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-CRN075] 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-CRN076] The sum of AllowanceCharge/Amount elements (with ChargeIndicator='true') must equal cbc:ChargeTotalAmount
/[]
(cbc:PayableRoundingAmount) and (../cac:TaxTotal/cbc:RoundingAmount) and (not(format-number(cbc:PayableRoundingAmount,'##.00') = format-number(sum(../cac:TaxTotal/cbc:RoundingAmount),'##.00')))
[F-CRN078] The sum of TaxTotal/RoundingAmount elements must equal PayableRoundingAmount
/[]
(cbc:PayableRoundingAmount) and ((cbc:PayableRoundingAmount < -10.00) or (cbc:PayableRoundingAmount > 10.00))
[F-CRN208] The LegalMonetaryTotal/PayableRoundingAmount must NOT be less then -10.00 or greater then 10.00.
/[]
format-number(cbc:PayableAmount,'##.00') = format-number(sum(cbc:LineExtensionAmount) + sum(../cac:TaxTotal/cac:TaxSubtotal/cbc:TaxAmount) + sum(cbc:ChargeTotalAmount) - sum(cbc:AllowanceTotalAmount) + sum(cbc:PayableRoundingAmount),'##.00')
[F-CRN079] PayableAmount is calculated incorrectly
/[]
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
/[]
cbc:CreditedQuantity != ''
[F-CRN196] Invalid CreditedQuantity. Must contain a value
/[]
count(cac:TaxTotal) != 0
[F-CRN081] One or more TaxTotal class must be present
/[]
not(count(cac:Item)) and not(count(cac:BillingReference))
[F-CRN082] One Item class must be present when CreditNoteLine/BillingReference is not specified
/[]
not(count(cac:Price)) and not(count(cac:BillingReference))
[F-CRN083] One Price class must be present when CreditNoteLine/BillingReference is not specified
/[]
normalize-space(cbc:ID) != ''
[F-CRN084] Invalid CreditNoteLine/ID. Must contain a value.
/[]
cbc:AccountingCost and cbc:AccountingCostCode
[F-LIB021] Use either AccountingCost or AccountingCostCode
/[]
not($NegativeLEA or $NegativePA) and starts-with(cac:Price/cac:AllowanceCharge/cbc:Amount,'-')
[F-CRN203] AllowanceCharge.Amount can not be negative, if CreditedQuantity or Price.PriceAmount is not negative.
/[]
($T and $PER) and ((cbc:LineExtensionAmount < (cbc:CreditedQuantity * cac:Price/cbc:PriceAmount - '01.00')) or (cbc:LineExtensionAmount > (cbc:CreditedQuantity * cac:Price/cbc:PriceAmount + '01.00')))
[F-CRN085] LineExtensionAmount must equal CreditedQuantity * Price.PriceAmount (when OrderableUnitFactorRate not present)
/[]
(($T or not($T)) and not($PER) and $CRandMOC)
[W-CRN154] LineExtensionAmount cannot be evaluated since either 'cbc:CalculationRate', 'cbc:MathematicOperatorCode' or both are not present in 'CreditNote/cac:PricingExchangeRate'
/[]
($T and not($PER) and not($CRandMOC) and $Multiply) and ((cbc:LineExtensionAmount < (cbc:CreditedQuantity * cac:Price/cbc:PriceAmount * ../cac:PricingExchangeRate/cbc:CalculationRate - '01.00')) or (cbc:LineExtensionAmount > (cbc:CreditedQuantity * cac:Price/cbc:PriceAmount * ../cac:PricingExchangeRate/cbc:CalculationRate + '01.00')))
[F-CRN198] LineExtensionAmount must equal CreditedQuantity * Price.PriceAmount * CreditNote.PricingExchangeRate.CalculationRate (when '../cac:PricingExchangeRate' is present with MathematicOperatorCode = 'multiply' and OrderableUnitFactorRate is not present)
/[]
($T and not($PER) and not($CRandMOC) and $Divide) and ((cbc:LineExtensionAmount < (((cbc:CreditedQuantity * cac:Price/cbc:PriceAmount) div ../cac:PricingExchangeRate/cbc:CalculationRate) - '01.00')) or (cbc:LineExtensionAmount > (((cbc:CreditedQuantity * cac:Price/cbc:PriceAmount) div ../cac:PricingExchangeRate/cbc:CalculationRate) + '01.00')))
[F-CRN199] LineExtensionAmount must equal (CreditedQuantity * Price.PriceAmount) div CreditNote.PricingExchangeRate.CalculationRate (when '../cac:PricingExchangeRate' is present with MathematicOperatorCode = 'divide' and OrderableUnitFactorRate is not present)
/[]
(not($T) and $PER) and ((cbc:LineExtensionAmount < (cbc:CreditedQuantity * cac:Price/cbc:PriceAmount * cac:Price/cbc:OrderableUnitFactorRate - '01.00')) or (cbc:LineExtensionAmount > (cbc:CreditedQuantity * cac:Price/cbc:PriceAmount * cac:Price/cbc:OrderableUnitFactorRate + '01.00')))
[F-CRN194] LineExtensionAmount must equal CreditedQuantity * Price.PriceAmount * Price.OrderableUnitFactorRate
/[]
(not($T) and not($PER) and not($CRandMOC) and $Multiply) and ((cbc:LineExtensionAmount < (cbc:CreditedQuantity * cac:Price/cbc:PriceAmount * cac:Price/cbc:OrderableUnitFactorRate * ../cac:PricingExchangeRate/cbc:CalculationRate - '01.00')) or (cbc:LineExtensionAmount > (cbc:CreditedQuantity * cac:Price/cbc:PriceAmount * cac:Price/cbc:OrderableUnitFactorRate * ../cac:PricingExchangeRate/cbc:CalculationRate + '01.00')))
[F-CRN200] LineExtensionAmount must equal CreditedQuantity * Price.PriceAmount * Price.OrderableUnitFactorRate * CreditNote.PricingExchangeRate.CalculationRate (when '../cac:PricingExchangeRate' is present with MathematicOperatorCode = 'multiply')
/[]
(not($T) and not($PER) and not($CRandMOC) and $Divide) and (((cbc:LineExtensionAmount < ((cbc:CreditedQuantity * cac:Price/cbc:PriceAmount * cac:Price/cbc:OrderableUnitFactorRate) div ../cac:PricingExchangeRate/cbc:CalculationRate) - '01.00')) or (cbc:LineExtensionAmount > (((cbc:CreditedQuantity * cac:Price/cbc:PriceAmount * cac:Price/cbc:OrderableUnitFactorRate) div ../cac:PricingExchangeRate/cbc:CalculationRate) + '01.00')))
[F-CRN201] LineExtensionAmount must equal (CreditedQuantity * Price.PriceAmount * Price.OrderableUnitFactorRate) div CreditNote.PricingExchangeRate.CalculationRate (when '../cac:PricingExchangeRate' is present with MathematicOperatorCode = 'divide')
/[]
normalize-space(cbc:LineExtensionAmount) != ''
[F-CRN207] For each CreditNoteLine, LineExtensionAmount must be present and contain a value.
/[]
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-CRN087] Invalid CreditedQuantity. No more than 6 decimals
/[]
. != 0
[F-CRN088] Invalid CreditedQuantity. Must not be zero
/[]
string-length(substring-after(., '.')) < 2
[F-CRN089] Invalid LineExtensionAmount. Must have at least 2 decimals
/[]
string-length(substring-after(., '.')) > 4
[F-CRN090] Invalid LineExtensionAmount. No more than 4 decimals
/[]
normalize-space(cbc:ReferenceID) != ''
[F-CRN168] Invalid ReferenceID. Must contain a value
/[]
cbc:ResponseCode and cbc:Description
[F-CRN169] Use either ResponseCode or Description
/[]
./@listID = 'urn:oioubl:codelist:lineresponsecode-1.0'
[F-CRN091] Invalid listID. Must be 'urn:oioubl:codelist:lineresponsecode-1.0'
/[]
./@listAgencyID = '320'
[F-CRN167] Invalid listAgencyID. Must be '320'
/[]
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:LineID) != ''
[F-CRN170] 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-CRN171] 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-CRN172] DebitNoteDocumentReference class must be excluded
/[]
count(cac:AdditionalDocumentReference) = 0
[F-CRN173] AdditionalDocumentReference class must be excluded
/[]
count(cac:BillingReferenceLine) > 1
[F-CRN174] 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-CRN175] 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:LatestDeliveryDate) = 0
[F-CRN098] LatestDeliveryDate element must be excluded
/[]
count(cbc:LatestDeliveryTime) = 0
[F-CRN099] LatestDeliveryTime element must be excluded
/[]
count(cac:DeliveryAddress) = 0
[F-CRN157] DeliveryAddress class must be excluded
/[]
count(cac:PromisedDeliveryPeriod) = 0
[F-CRN100] PromisedDeliveryPeriod class must be excluded
/[]
count(cac:EstimatedDeliveryPeriod) = 0
[F-CRN101] EstimatedDeliveryPeriod class must be excluded
/[]
not(cbc:ID) and not(cac:Address)
[F-CRN158] 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-CRN176] 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[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-CRN109] OriginCountry class must be excluded
/[]
normalize-space(cbc:Name) != ''
[F-CRN110] Invalid Name. Must contain a value
/[]
count(cbc:Keyword) > 1
[F-CRN177] No more than one Keyword element may be present
/[]
count(cbc:BrandName) > 1
[F-CRN178] No more than one BrandName element may be present
/[]
count(cbc:ModelName) > 1
[F-CRN179] No more than one ModelName element may be present
/[]
count(cac:ManufacturersItemIdentification) > 1
[F-CRN180] No more than one ManufacturersItemIdentification class may be present
/[]
count(cac:AdditionalItemIdentification) > 1
[F-CRN181] No more than one AdditionalItemIdentification class may be present
/[]
count(cac:ItemSpecificationDocumentReference) > 1
[F-CRN182] 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-CRN115] Invalid SellersItemIdentification/ID. Must contain a value.
/[]
normalize-space(cbc:Description) != ''
[F-CRN119] Invalid Description. Must contain a value
/[]
normalize-space(cbc:AttributeID) != ''
[F-CRN118] 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-CRN189] 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-CRN132] 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-CRN133] Invalid Name. Must contain a value
/[]
normalize-space(cbc:Value) != ''
[F-CRN151] 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-CRN152] Invalid ID. 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-CRN190] Invalid Name. Must contain a value
/[]
normalize-space(cbc:Value) != ''
[F-CRN191] 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-CRN192] Invalid ID. Must contain a value
/[]
normalize-space(cbc:Name) != ''
[F-CRN185] Invalid Name. Must contain a value
/[]
normalize-space(cbc:Value) != ''
[F-CRN186] 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-CRN187] Invalid ID. Must contain a value
/[]
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-CRN139] 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-CRN140] Multilanguage error. Replicated PriceChangeReason elements with same languageID attribute value
/[]
./@listID = 'UN/ECE 5387'
[F-CRN141] 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'
/[]