/
*:
[namespace-uri()='
']
[
]
/
@sch:schema
@*[local-name()='
' and namespace-uri()='
']
/
[
]
/@
.
U
U
U.
n
U.
_
_
Checking OIOUBL-2.02 CatalogueItemSpecificationUpdate, 2017-09-15, Version 1.9.0.34429
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(*) = 'CatalogueItemSpecificationUpdate'
[F-CIU001] Root element must be CatalogueItemSpecificationUpdate
/[]
namespace-uri(*) = 'urn:oasis:names:specification:ubl:schema:xsd:CatalogueItemSpecificationUpdate-2'
[F-CIU249] The documenttype does not match an OIOUBL CatalogueItemSpecificationUpdate 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 '
'
/[]
count(cbc:LineCountNumeric) = 0
[F-CIU004] LineCountNumeric element must be excluded
/[]
cbc:VersionID != ''
[F-CIU003] Invalid VersionID. Must contain a value
/[]
count(cac:SellerSupplierParty) = 1
[F-CIU005] One SellerSupplierParty class must be present
/[]
cbc:ID != ''
[F-CIU002] Invalid ID. Must contain a value
/[]
cac:ContractorCustomerParty and cac:ReceiverParty/cac:PartyIdentification/cbc:ID = cac:ContractorCustomerParty/cac:Party/cac:PartyIdentification/cbc:ID
[F-CIU006] ContractorCustomerParty must be different from ReceiverParty
/[]
count(cac:ValidityPeriod) > 1
[F-CIU007] No more than one ValidityPeriod class must 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
/[]
count(../cbc:Description) > 1 and not(./@languageID)
[W-LIB222] The attribute languageID should be used when more than one Description element is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/@languageID = self::*/@languageID
[W-LIB223] Multilanguage error. Replicated Description elements with same languageID attribute value
/[]
count(cbc:DurationMeasure) = 0
[F-LIB076] DurationMeasure element must be excluded
/[]
count(cbc:DescriptionCode) = 0
[F-LIB077] DescriptionCode element must be excluded
/[]
(cbc:StartTime) and (not(cbc:StartDate) or cbc:StartDate = '')
[F-LIB078] There must be a StartDate if you have a StartTime
/[]
(cbc:EndTime) and (not(cbc:EndDate) or cbc:EndDate = '')
[F-LIB079] There must be a EndDate if you have a EndTime
/[]
(cbc:StartDate and cbc:EndDate) and not(number(translate(cbc:EndDate,'-','')) > number(translate(cbc:StartDate,'-','')) or number(translate(cbc:EndDate,'-','')) = number(translate(cbc:StartDate,'-','')))
[F-LIB080] The EndDate must be greater or equal to the startdate
/[]
(cbc:StartTime and cbc:EndTime) and not(number(translate(cbc:EndTime,':','')) > number(translate(cbc:StartTime,':','')) or number(translate(cbc:EndTime,':','')) = number(translate(cbc:StartTime,':','')))
[F-LIB081] EndTime must be greater or equal to StartTime
/[]
count(../cbc:Description) > 1 and not(./@languageID)
[W-LIB222] The attribute languageID should be used when more than one Description element is present
/[]
local-name(following-sibling::*) = local-name(current()) and following-sibling::*/@languageID = self::*/@languageID
[W-LIB223] Multilanguage error. Replicated Description elements with same languageID attribute value
/[]
cbc:ID != ''
[F-CIU242] Invalid ID. Must contain a value
/[]
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
/[]
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:ID != ''
[F-CIU020] Invalid ID. Must contain a value
/[]
cbc:ContractType and cbc:ContractTypeCode
[F-CIU021] Use either ContractType or ContractTypeCode
/[]
count(cac:ContractDocumentReference) > 1
[F-CIU022] 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
/[]
cbc:ID != ''
[F-CIU030] Invalid 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-CIU031] 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(normalize-space(cbc:AddressFormatCode) = 'StructuredDK' or normalize-space(cbc:AddressFormatCode) = 'StructuredLax' or normalize-space(cbc:AddressFormatCode) = 'StructuredID' or normalize-space(cbc:AddressFormatCode) = 'StructuredRegion' or normalize-space(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(normalize-space(cbc:AddressFormatCode) = 'StructuredDK' or normalize-space(cbc:AddressFormatCode) = 'StructuredLax' or normalize-space(cbc:AddressFormatCode) = 'StructuredID' or normalize-space(cbc:AddressFormatCode) = 'StructuredRegion' or normalize-space(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 or cbc:ID/@schemeID = $TaxScheme5_schemeID
[F-LIB070] Invalid schemeID. Must be either '
', '
', '
' or '
'
/[]
(cbc:TaxTypeCode) and not((cbc:TaxTypeCode/@listID = $TaxType_listID) or (cbc:TaxTypeCode/@listID = $TaxType_listID2))
[F-LIB071] Invalid listID. Must be either '
' 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: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
/[]
cbc:EndpointID != ''
[F-CIU040] Invalid EndpointID. Must contain a value
/[]
count(cac:PartyLegalEntity) = 1
[F-CIU041] 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(normalize-space(cbc:AddressFormatCode) = 'StructuredDK' or normalize-space(cbc:AddressFormatCode) = 'StructuredLax' or normalize-space(cbc:AddressFormatCode) = 'StructuredID' or normalize-space(cbc:AddressFormatCode) = 'StructuredRegion' or normalize-space(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(normalize-space(cbc:AddressFormatCode) = 'StructuredDK' or normalize-space(cbc:AddressFormatCode) = 'StructuredLax' or normalize-space(cbc:AddressFormatCode) = 'StructuredID' or normalize-space(cbc:AddressFormatCode) = 'StructuredRegion' or normalize-space(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 or cbc:ID/@schemeID = $TaxScheme5_schemeID
[F-LIB070] Invalid schemeID. Must be either '
', '
', '
' or '
'
/[]
(cbc:TaxTypeCode) and not((cbc:TaxTypeCode/@listID = $TaxType_listID) or (cbc:TaxTypeCode/@listID = $TaxType_listID2))
[F-LIB071] Invalid listID. Must be either '
' 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(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
/[]
cbc:EndpointID != ''
[F-CIU050] Invalid EndpointID. Must contain a value
/[]
(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-CIU051] 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(normalize-space(cbc:AddressFormatCode) = 'StructuredDK' or normalize-space(cbc:AddressFormatCode) = 'StructuredLax' or normalize-space(cbc:AddressFormatCode) = 'StructuredID' or normalize-space(cbc:AddressFormatCode) = 'StructuredRegion' or normalize-space(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(normalize-space(cbc:AddressFormatCode) = 'StructuredDK' or normalize-space(cbc:AddressFormatCode) = 'StructuredLax' or normalize-space(cbc:AddressFormatCode) = 'StructuredID' or normalize-space(cbc:AddressFormatCode) = 'StructuredRegion' or normalize-space(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 or cbc:ID/@schemeID = $TaxScheme5_schemeID
[F-LIB070] Invalid schemeID. Must be either '
', '
', '
' or '
'
/[]
(cbc:TaxTypeCode) and not((cbc:TaxTypeCode/@listID = $TaxType_listID) or (cbc:TaxTypeCode/@listID = $TaxType_listID2))
[F-LIB071] Invalid listID. Must be either '
' 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(cbc:DataSendingCapability) = 0
[F-CIU060] DataSendingCapability element must be excluded
/[]
count(cac:Party) = 1
[F-CIU061] 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
/[]
(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-CIU062] 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(normalize-space(cbc:AddressFormatCode) = 'StructuredDK' or normalize-space(cbc:AddressFormatCode) = 'StructuredLax' or normalize-space(cbc:AddressFormatCode) = 'StructuredID' or normalize-space(cbc:AddressFormatCode) = 'StructuredRegion' or normalize-space(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(normalize-space(cbc:AddressFormatCode) = 'StructuredDK' or normalize-space(cbc:AddressFormatCode) = 'StructuredLax' or normalize-space(cbc:AddressFormatCode) = 'StructuredID' or normalize-space(cbc:AddressFormatCode) = 'StructuredRegion' or normalize-space(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 or cbc:ID/@schemeID = $TaxScheme5_schemeID
[F-LIB070] Invalid schemeID. Must be either '
', '
', '
' or '
'
/[]
(cbc:TaxTypeCode) and not((cbc:TaxTypeCode/@listID = $TaxType_listID) or (cbc:TaxTypeCode/@listID = $TaxType_listID2))
[F-LIB071] Invalid listID. Must be either '
' 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-CIU070] Party class must be present
/[]
count(cbc:MarkCareIndicator) = 0
[F-LIB166] MarkCareIndicator element must be excluded
/[]
count(cbc:MarkAttentionIndicator) = 0
[F-LIB167] MarkAttentionIndicator element must be excluded
/[]
count(cac:AgentParty) = 0
[F-LIB168] AgentParty class must be excluded
/[]
(not(cac:PartyIdentification) or cac:PartyIdentification/cbc:ID = '') and (not(cac:PartyName) or cac:PartyName/cbc:Name = '')
[F-LIB022] PartyName/Name is mandatory if PartyIdentification/ID is not found
/[]
cbc:EndpointID and not(contains($EndpointID_schemeID, concat(',',cbc:EndpointID/@schemeID,',')))
[F-LIB179] Invalid schemeID: '
'. Must be a value from the codelist: '
'
/[]
(cbc:EndpointID/@schemeID = 'DK:CVR') and (string-length(cbc:EndpointID) != 10 or substring(cbc:EndpointID, 1, 2) != 'DK')
[F-LIB180] schemeID = DK:CVR, EndpointID must be a valid CVR number (DK12345678)
/[]
(cbc:EndpointID/@schemeID = 'DK:CPR') and not(string-length(cbc:EndpointID) = 10)
[F-LIB215] schemeID = DK:CPR, EndpointID must be a valid CPR number (1234560000)
/[]
(cbc:EndpointID/@schemeID = 'GLN') and not(string-length(cbc:EndpointID) = 13)
[F-LIB181] schemeID = GLN, EndpointID must be a valid GLN number (1234567890123)
/[]
(cbc:EndpointID/@schemeID = 'EAN') and not(string-length(cbc:EndpointID) = 13)
[F-LIB216] schemeID = EAN, EndpointID must be a valid EAN number (1234567890123)
/[]
count(cac:PartyLegalEntity) > 1
[F-CIU071] 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(normalize-space(cbc:AddressFormatCode) = 'StructuredDK' or normalize-space(cbc:AddressFormatCode) = 'StructuredLax' or normalize-space(cbc:AddressFormatCode) = 'StructuredID' or normalize-space(cbc:AddressFormatCode) = 'StructuredRegion' or normalize-space(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(normalize-space(cbc:AddressFormatCode) = 'StructuredDK' or normalize-space(cbc:AddressFormatCode) = 'StructuredLax' or normalize-space(cbc:AddressFormatCode) = 'StructuredID' or normalize-space(cbc:AddressFormatCode) = 'StructuredRegion' or normalize-space(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 or cbc:ID/@schemeID = $TaxScheme5_schemeID
[F-LIB070] Invalid schemeID. Must be either '
', '
', '
' or '
'
/[]
(cbc:TaxTypeCode) and not((cbc:TaxTypeCode/@listID = $TaxType_listID) or (cbc:TaxTypeCode/@listID = $TaxType_listID2))
[F-LIB071] Invalid listID. Must be either '
' or '
'
/[]
(cbc:ID = '63') and cbc:Name != 'Moms'
[F-LIB198] Name must equal 'Moms' when TaxScheme/ID equals '63' (Moms)
/[]
(cbc:ID != '63') and cbc:Name = 'Moms'
[F-LIB199] Name must correspond to the value of TaxScheme/ID
/[]
(cac:JurisdictionRegionAddress/cac:Country/cbc:IdentificationCode) and not(contains($CountryCode, concat(',',cac:JurisdictionRegionAddress/cac:Country/cbc:IdentificationCode,',')))
[F-LIB337] Invalid Country/IdentificationCode: '
'. Must be a value from the country codelist
/[]
(cac:JurisdictionRegionAddress) and cac:JurisdictionRegionAddress/cbc:AddressFormatCode != 'StructuredRegion'
[F-LIB233] The AddressFormatCode under JurisdictionRegionAddress must always equal 'StructuredRegion'
/[]
count(cac:CorporateRegistrationScheme) = 0
[F-LIB186] CorporateRegistrationScheme class must be excluded
/[]
normalize-space(cbc:CompanyID) != ''
[F-LIB187] Invalid CompanyID. Must contain a value
/[]
cbc:CompanyID/@schemeID = 'DK:CVR' or cbc:CompanyID/@schemeID = 'DK:CPR' or cbc:CompanyID/@schemeID = 'ZZZ'
[F-LIB189] Invalid schemeID. Must be a valid scheme for PartyLegalEntity/CompanyID
/[]
(cbc:CompanyID/@schemeID = 'DK:CVR') and (string-length(normalize-space(cbc:CompanyID)) != 10 or substring(cbc:CompanyID, 1, 2) != 'DK')
[F-LIB190] schemeID = DK:CVR, CompanyID must be a valid CVR number (DK12345678)
/[]
(cbc:CompanyID/@schemeID = 'DK:CPR') and not(string-length(cbc:CompanyID) = 10)
[F-LIB191] schemeID = DK:CPR, CompanyID must be a valid CPR number (1234560000)
/[]
(not(cbc:ID) or cbc:ID = '') and (not(cbc:Name) or cbc:Name = '') and (not(cbc:Telephone) or cbc:Telephone = '') and (not(cbc:Telefax) or cbc:Telefax = '') and (not(cbc:ElectronicMail) or cbc:ElectronicMail = '') and (not(cbc:Note) or cbc:Note = '') and not(cac:OtherCommunication)
[F-LIB235] At least one field in the Contact class should be specified
/[]
cac:OtherCommunication/cbc:ChannelCode and cac:OtherCommunication/cbc:Channel
[F-LIB236] Use either ChannelCode or Channel
/[]
cac:OtherCommunication and not(normalize-space(cac:OtherCommunication/cbc:Value) != '')
[F-LIB237] Invalid Value. Must contain a value
/[]
(not(cbc:FamilyName) or cbc:FamilyName = '') and (not(cbc:FirstName) or cbc:FirstName = '')
[F-LIB024] There must be a FirstName if the FamilyName is not present
/[]
(not(cbc:ID) or cbc:ID = '') and (not(cbc:Name) or cbc:Name = '') and (not(cbc:Telephone) or cbc:Telephone = '') and (not(cbc:Telefax) or cbc:Telefax = '') and (not(cbc:ElectronicMail) or cbc:ElectronicMail = '') and (not(cbc:Note) or cbc:Note = '') and not(cac:OtherCommunication)
[F-LIB235] At least one field in the Contact class should be specified
/[]
cac:OtherCommunication/cbc:ChannelCode and cac:OtherCommunication/cbc:Channel
[F-LIB236] Use either ChannelCode or Channel
/[]
cac:OtherCommunication and not(normalize-space(cac:OtherCommunication/cbc:Value) != '')
[F-LIB237] Invalid Value. Must contain a value
/[]
(not(cbc:ID) or cbc:ID = '') and (not(cbc:Name) or cbc:Name = '') and (not(cbc:Telephone) or cbc:Telephone = '') and (not(cbc:Telefax) or cbc:Telefax = '') and (not(cbc:ElectronicMail) or cbc:ElectronicMail = '') and (not(cbc:Note) or cbc:Note = '') and not(cac:OtherCommunication)
[F-LIB235] At least one field in the Contact class should be specified
/[]
cac:OtherCommunication/cbc:ChannelCode and cac:OtherCommunication/cbc:Channel
[F-LIB236] Use either ChannelCode or Channel
/[]
cac:OtherCommunication and not(normalize-space(cac:OtherCommunication/cbc:Value) != '')
[F-LIB237] Invalid Value. Must contain a value
/[]
(not(cbc:ID) or cbc:ID = '') and (not(cbc:Name) or cbc:Name = '') and (not(cbc:Telephone) or cbc:Telephone = '') and (not(cbc:Telefax) or cbc:Telefax = '') and (not(cbc:ElectronicMail) or cbc:ElectronicMail = '') and (not(cbc:Note) or cbc:Note = '') and not(cac:OtherCommunication)
[F-LIB235] At least one field in the Contact class should be specified
/[]
cac:OtherCommunication/cbc:ChannelCode and cac:OtherCommunication/cbc:Channel
[F-LIB236] Use either ChannelCode or Channel
/[]
cac:OtherCommunication and not(normalize-space(cac:OtherCommunication/cbc:Value) != '')
[F-LIB237] Invalid Value. Must contain a value
/[]
count(cbc: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(normalize-space(cbc:AddressFormatCode) = 'StructuredDK' or normalize-space(cbc:AddressFormatCode) = 'StructuredLax' or normalize-space(cbc:AddressFormatCode) = 'StructuredID' or normalize-space(cbc:AddressFormatCode) = 'StructuredRegion' or normalize-space(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
/[]
cbc:ID != ''
[F-CIU100] Invalid ID. Must contain a value
/[]
./cbc:ID = ./following-sibling::*/cbc:ID
[F-CIU111] ID must be unique within the document instance
/[]
count(cac:Party) = 1
[F-CIU120] Party class must be present
/[]
count(cbc:MarkCareIndicator) = 0
[F-LIB166] MarkCareIndicator element must be excluded
/[]
count(cbc:MarkAttentionIndicator) = 0
[F-LIB167] MarkAttentionIndicator element must be excluded
/[]
count(cac:AgentParty) = 0
[F-LIB168] AgentParty class must be excluded
/[]
(not(cac:PartyIdentification) or cac:PartyIdentification/cbc:ID = '') and (not(cac:PartyName) or cac:PartyName/cbc:Name = '')
[F-LIB022] PartyName/Name is mandatory if PartyIdentification/ID is not found
/[]
cbc:EndpointID and not(contains($EndpointID_schemeID, concat(',',cbc:EndpointID/@schemeID,',')))
[F-LIB179] Invalid schemeID: '
'. Must be a value from the codelist: '
'
/[]
(cbc:EndpointID/@schemeID = 'DK:CVR') and (string-length(cbc:EndpointID) != 10 or substring(cbc:EndpointID, 1, 2) != 'DK')
[F-LIB180] schemeID = DK:CVR, EndpointID must be a valid CVR number (DK12345678)
/[]
(cbc:EndpointID/@schemeID = 'DK:CPR') and not(string-length(cbc:EndpointID) = 10)
[F-LIB215] schemeID = DK:CPR, EndpointID must be a valid CPR number (1234560000)
/[]
(cbc:EndpointID/@schemeID = 'GLN') and not(string-length(cbc:EndpointID) = 13)
[F-LIB181] schemeID = GLN, EndpointID must be a valid GLN number (1234567890123)
/[]
(cbc:EndpointID/@schemeID = 'EAN') and not(string-length(cbc:EndpointID) = 13)
[F-LIB216] schemeID = EAN, EndpointID must be a valid EAN number (1234567890123)
/[]
count(cac:PartyLegalEntity) > 1
[F-CIU121] 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(normalize-space(cbc:AddressFormatCode) = 'StructuredDK' or normalize-space(cbc:AddressFormatCode) = 'StructuredLax' or normalize-space(cbc:AddressFormatCode) = 'StructuredID' or normalize-space(cbc:AddressFormatCode) = 'StructuredRegion' or normalize-space(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(normalize-space(cbc:AddressFormatCode) = 'StructuredDK' or normalize-space(cbc:AddressFormatCode) = 'StructuredLax' or normalize-space(cbc:AddressFormatCode) = 'StructuredID' or normalize-space(cbc:AddressFormatCode) = 'StructuredRegion' or normalize-space(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 or cbc:ID/@schemeID = $TaxScheme5_schemeID
[F-LIB070] Invalid schemeID. Must be either '
', '
', '
' or '
'
/[]
(cbc:TaxTypeCode) and not((cbc:TaxTypeCode/@listID = $TaxType_listID) or (cbc:TaxTypeCode/@listID = $TaxType_listID2))
[F-LIB071] Invalid listID. Must be either '
' or '
'
/[]
(cbc:ID = '63') and cbc:Name != 'Moms'
[F-LIB198] Name must equal 'Moms' when TaxScheme/ID equals '63' (Moms)
/[]
(cbc:ID != '63') and cbc:Name = 'Moms'
[F-LIB199] Name must correspond to the value of TaxScheme/ID
/[]
(cac:JurisdictionRegionAddress/cac:Country/cbc:IdentificationCode) and not(contains($CountryCode, concat(',',cac:JurisdictionRegionAddress/cac:Country/cbc:IdentificationCode,',')))
[F-LIB337] Invalid Country/IdentificationCode: '
'. Must be a value from the country codelist
/[]
(cac:JurisdictionRegionAddress) and cac:JurisdictionRegionAddress/cbc:AddressFormatCode != 'StructuredRegion'
[F-LIB233] The AddressFormatCode under JurisdictionRegionAddress must always equal 'StructuredRegion'
/[]
count(cac:CorporateRegistrationScheme) = 0
[F-LIB186] CorporateRegistrationScheme class must be excluded
/[]
normalize-space(cbc:CompanyID) != ''
[F-LIB187] Invalid CompanyID. Must contain a value
/[]
cbc:CompanyID/@schemeID = 'DK:CVR' or cbc:CompanyID/@schemeID = 'DK:CPR' or cbc:CompanyID/@schemeID = 'ZZZ'
[F-LIB189] Invalid schemeID. Must be a valid scheme for PartyLegalEntity/CompanyID
/[]
(cbc:CompanyID/@schemeID = 'DK:CVR') and (string-length(normalize-space(cbc:CompanyID)) != 10 or substring(cbc:CompanyID, 1, 2) != 'DK')
[F-LIB190] schemeID = DK:CVR, CompanyID must be a valid CVR number (DK12345678)
/[]
(cbc:CompanyID/@schemeID = 'DK:CPR') and not(string-length(cbc:CompanyID) = 10)
[F-LIB191] schemeID = DK:CPR, CompanyID must be a valid CPR number (1234560000)
/[]
(not(cbc:ID) or cbc:ID = '') and (not(cbc:Name) or cbc:Name = '') and (not(cbc:Telephone) or cbc:Telephone = '') and (not(cbc:Telefax) or cbc:Telefax = '') and (not(cbc:ElectronicMail) or cbc:ElectronicMail = '') and (not(cbc:Note) or cbc:Note = '') and not(cac:OtherCommunication)
[F-LIB235] At least one field in the Contact class should be specified
/[]
cac:OtherCommunication/cbc:ChannelCode and cac:OtherCommunication/cbc:Channel
[F-LIB236] Use either ChannelCode or Channel
/[]
cac:OtherCommunication and not(normalize-space(cac:OtherCommunication/cbc:Value) != '')
[F-LIB237] Invalid Value. Must contain a value
/[]
(not(cbc:FamilyName) or cbc:FamilyName = '') and (not(cbc:FirstName) or cbc:FirstName = '')
[F-LIB024] There must be a FirstName if the FamilyName is not present
/[]
(not(cbc:ID) or cbc:ID = '') and (not(cbc:Name) or cbc:Name = '') and (not(cbc:Telephone) or cbc:Telephone = '') and (not(cbc:Telefax) or cbc:Telefax = '') and (not(cbc:ElectronicMail) or cbc:ElectronicMail = '') and (not(cbc:Note) or cbc:Note = '') and not(cac:OtherCommunication)
[F-LIB235] At least one field in the Contact class should be specified
/[]
cac:OtherCommunication/cbc:ChannelCode and cac:OtherCommunication/cbc:Channel
[F-LIB236] Use either ChannelCode or Channel
/[]
cac:OtherCommunication and not(normalize-space(cac:OtherCommunication/cbc:Value) != '')
[F-LIB237] Invalid Value. Must contain a value
/[]
(not(cbc:ID) or cbc:ID = '') and (not(cbc:Name) or cbc:Name = '') and (not(cbc:Telephone) or cbc:Telephone = '') and (not(cbc:Telefax) or cbc:Telefax = '') and (not(cbc:ElectronicMail) or cbc:ElectronicMail = '') and (not(cbc:Note) or cbc:Note = '') and not(cac:OtherCommunication)
[F-LIB235] At least one field in the Contact class should be specified
/[]
cac:OtherCommunication/cbc:ChannelCode and cac:OtherCommunication/cbc:Channel
[F-LIB236] Use either ChannelCode or Channel
/[]
cac:OtherCommunication and not(normalize-space(cac:OtherCommunication/cbc:Value) != '')
[F-LIB237] Invalid Value. Must contain a value
/[]
(not(cbc:ID) or cbc:ID = '') and (not(cbc:Name) or cbc:Name = '') and (not(cbc:Telephone) or cbc:Telephone = '') and (not(cbc:Telefax) or cbc:Telefax = '') and (not(cbc:ElectronicMail) or cbc:ElectronicMail = '') and (not(cbc:Note) or cbc:Note = '') and not(cac:OtherCommunication)
[F-LIB235] At least one field in the Contact class should be specified
/[]
cac:OtherCommunication/cbc:ChannelCode and cac:OtherCommunication/cbc:Channel
[F-LIB236] Use either ChannelCode or Channel
/[]
cac:OtherCommunication and not(normalize-space(cac:OtherCommunication/cbc:Value) != '')
[F-LIB237] Invalid Value. Must contain a value
/[]
count(cbc:DataSendingCapability) = 0
[F-CIU130] DataSendingCapability element must be excluded
/[]
count(cac:Party) = 1
[F-CIU131] Party class must be present
/[]
count(cbc:MarkCareIndicator) = 0
[F-LIB166] MarkCareIndicator element must be excluded
/[]
count(cbc:MarkAttentionIndicator) = 0
[F-LIB167] MarkAttentionIndicator element must be excluded
/[]
count(cac:AgentParty) = 0
[F-LIB168] AgentParty class must be excluded
/[]
(not(cac:PartyIdentification) or cac:PartyIdentification/cbc:ID = '') and (not(cac:PartyName) or cac:PartyName/cbc:Name = '')
[F-LIB022] PartyName/Name is mandatory if PartyIdentification/ID is not found
/[]
cbc:EndpointID and not(contains($EndpointID_schemeID, concat(',',cbc:EndpointID/@schemeID,',')))
[F-LIB179] Invalid schemeID: '
'. Must be a value from the codelist: '
'
/[]
(cbc:EndpointID/@schemeID = 'DK:CVR') and (string-length(cbc:EndpointID) != 10 or substring(cbc:EndpointID, 1, 2) != 'DK')
[F-LIB180] schemeID = DK:CVR, EndpointID must be a valid CVR number (DK12345678)
/[]
(cbc:EndpointID/@schemeID = 'DK:CPR') and not(string-length(cbc:EndpointID) = 10)
[F-LIB215] schemeID = DK:CPR, EndpointID must be a valid CPR number (1234560000)
/[]
(cbc:EndpointID/@schemeID = 'GLN') and not(string-length(cbc:EndpointID) = 13)
[F-LIB181] schemeID = GLN, EndpointID must be a valid GLN number (1234567890123)
/[]
(cbc:EndpointID/@schemeID = 'EAN') and not(string-length(cbc:EndpointID) = 13)
[F-LIB216] schemeID = EAN, EndpointID must be a valid EAN number (1234567890123)
/[]
count(cac:PartyLegalEntity) > 1
[F-CIU132] 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(normalize-space(cbc:AddressFormatCode) = 'StructuredDK' or normalize-space(cbc:AddressFormatCode) = 'StructuredLax' or normalize-space(cbc:AddressFormatCode) = 'StructuredID' or normalize-space(cbc:AddressFormatCode) = 'StructuredRegion' or normalize-space(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(normalize-space(cbc:AddressFormatCode) = 'StructuredDK' or normalize-space(cbc:AddressFormatCode) = 'StructuredLax' or normalize-space(cbc:AddressFormatCode) = 'StructuredID' or normalize-space(cbc:AddressFormatCode) = 'StructuredRegion' or normalize-space(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 or cbc:ID/@schemeID = $TaxScheme5_schemeID
[F-LIB070] Invalid schemeID. Must be either '
', '
', '
' or '
'
/[]
(cbc:TaxTypeCode) and not((cbc:TaxTypeCode/@listID = $TaxType_listID) or (cbc:TaxTypeCode/@listID = $TaxType_listID2))
[F-LIB071] Invalid listID. Must be either '
' or '
'
/[]
(cbc:ID = '63') and cbc:Name != 'Moms'
[F-LIB198] Name must equal 'Moms' when TaxScheme/ID equals '63' (Moms)
/[]
(cbc:ID != '63') and cbc:Name = 'Moms'
[F-LIB199] Name must correspond to the value of TaxScheme/ID
/[]
(cac:JurisdictionRegionAddress/cac:Country/cbc:IdentificationCode) and not(contains($CountryCode, concat(',',cac:JurisdictionRegionAddress/cac:Country/cbc:IdentificationCode,',')))
[F-LIB337] Invalid Country/IdentificationCode: '
'. Must be a value from the country codelist
/[]
(cac:JurisdictionRegionAddress) and cac:JurisdictionRegionAddress/cbc:AddressFormatCode != 'StructuredRegion'
[F-LIB233] The AddressFormatCode under JurisdictionRegionAddress must always equal 'StructuredRegion'
/[]
count(cac:CorporateRegistrationScheme) = 0
[F-LIB186] CorporateRegistrationScheme class must be excluded
/[]
normalize-space(cbc:CompanyID) != ''
[F-LIB187] Invalid CompanyID. Must contain a value
/[]
cbc:CompanyID/@schemeID = 'DK:CVR' or cbc:CompanyID/@schemeID = 'DK:CPR' or cbc:CompanyID/@schemeID = 'ZZZ'
[F-LIB189] Invalid schemeID. Must be a valid scheme for PartyLegalEntity/CompanyID
/[]
(cbc:CompanyID/@schemeID = 'DK:CVR') and (string-length(normalize-space(cbc:CompanyID)) != 10 or substring(cbc:CompanyID, 1, 2) != 'DK')
[F-LIB190] schemeID = DK:CVR, CompanyID must be a valid CVR number (DK12345678)
/[]
(cbc:CompanyID/@schemeID = 'DK:CPR') and not(string-length(cbc:CompanyID) = 10)
[F-LIB191] schemeID = DK:CPR, CompanyID must be a valid CPR number (1234560000)
/[]
(not(cbc:ID) or cbc:ID = '') and (not(cbc:Name) or cbc:Name = '') and (not(cbc:Telephone) or cbc:Telephone = '') and (not(cbc:Telefax) or cbc:Telefax = '') and (not(cbc:ElectronicMail) or cbc:ElectronicMail = '') and (not(cbc:Note) or cbc:Note = '') and not(cac:OtherCommunication)
[F-LIB235] At least one field in the Contact class should be specified
/[]
cac:OtherCommunication/cbc:ChannelCode and cac:OtherCommunication/cbc:Channel
[F-LIB236] Use either ChannelCode or Channel
/[]
cac:OtherCommunication and not(normalize-space(cac:OtherCommunication/cbc:Value) != '')
[F-LIB237] Invalid Value. Must contain a value
/[]
(not(cbc:FamilyName) or cbc:FamilyName = '') and (not(cbc:FirstName) or cbc:FirstName = '')
[F-LIB024] There must be a FirstName if the FamilyName is not present
/[]
(not(cbc:ID) or cbc:ID = '') and (not(cbc:Name) or cbc:Name = '') and (not(cbc:Telephone) or cbc:Telephone = '') and (not(cbc:Telefax) or cbc:Telefax = '') and (not(cbc:ElectronicMail) or cbc:ElectronicMail = '') and (not(cbc:Note) or cbc:Note = '') and not(cac:OtherCommunication)
[F-LIB235] At least one field in the Contact class should be specified
/[]
cac:OtherCommunication/cbc:ChannelCode and cac:OtherCommunication/cbc:Channel
[F-LIB236] Use either ChannelCode or Channel
/[]
cac:OtherCommunication and not(normalize-space(cac:OtherCommunication/cbc:Value) != '')
[F-LIB237] Invalid Value. Must contain a value
/[]
(not(cbc:ID) or cbc:ID = '') and (not(cbc:Name) or cbc:Name = '') and (not(cbc:Telephone) or cbc:Telephone = '') and (not(cbc:Telefax) or cbc:Telefax = '') and (not(cbc:ElectronicMail) or cbc:ElectronicMail = '') and (not(cbc:Note) or cbc:Note = '') and not(cac:OtherCommunication)
[F-LIB235] At least one field in the Contact class should be specified
/[]
cac:OtherCommunication/cbc:ChannelCode and cac:OtherCommunication/cbc:Channel
[F-LIB236] Use either ChannelCode or Channel
/[]
cac:OtherCommunication and not(normalize-space(cac:OtherCommunication/cbc:Value) != '')
[F-LIB237] Invalid Value. Must contain a value
/[]
(not(cbc:ID) or cbc:ID = '') and (not(cbc:Name) or cbc:Name = '') and (not(cbc:Telephone) or cbc:Telephone = '') and (not(cbc:Telefax) or cbc:Telefax = '') and (not(cbc:ElectronicMail) or cbc:ElectronicMail = '') and (not(cbc:Note) or cbc:Note = '') and not(cac:OtherCommunication)
[F-LIB235] At least one field in the Contact class should be specified
/[]
cac:OtherCommunication/cbc:ChannelCode and cac:OtherCommunication/cbc:Channel
[F-LIB236] Use either ChannelCode or Channel
/[]
cac:OtherCommunication and not(normalize-space(cac:OtherCommunication/cbc:Value) != '')
[F-LIB237] Invalid Value. Must contain a value
/[]
count(cbc:CatalogueIndicator) = 0
[F-CIU220] CatalogueIndicator element must be excluded
/[]
count(cac:OriginCountry) = 0
[F-CIU241] OriginCountry class must be excluded
/[]
count(cac:ClassifiedTaxCategory) = 0
[F-CIU234] ClassifiedTaxCategory class must be excluded
/[]
cbc:Name != ''
[F-CIU221] Invalid Name. Must contain a value
/[]
count(cac:SellersItemIdentification) = 1
[F-CIU223] One SellersItemIdentification class must be present
/[]
count(cac:CommodityClassification) > 0
[F-CIU230] At least one CommodityClassification class must be present
/[]
count(cac:ManufacturersItemIdentification) > 1
[F-CIU228] No more than one ManufacturersItemIdentification class may be present
/[]
count(cac:AdditionalItemIdentification) > 1
[F-CIU229] No more than one AdditionalItemIdentification class may be present
/[]
count(cac:OriginAddress) > 1
[F-CIU243] No more than one OriginAddress 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
/[]
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(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.
/[]
cbc:ID != ''
[F-CIU224] Invalid ID. Must contain a value
/[]
count(cbc:PositionCode) = 0
[F-CIU244] PositionCode element must be excluded
/[]
count(cbc:DescriptionCode) = 0
[F-CIU245] DescriptionCode element must be excluded
/[]
cbc:Description != ''
[F-CIU226] Invalid Description. Must contain a value
/[]
cbc:AttributeID != ''
[F-CIU225] 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
/[]
cbc:AttributeID != ''
[F-CIU227] 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 != ''
[F-CIU231] Invalid ItemClassificationCode. Must contain a value
/[]
cbc:ItemClassificationCode/@listID = 'UNSPSC'
[F-CIU232] Invalid listID. Must be 'UNSPSC'
/[]
cbc:ItemClassificationCode/@listAgencyID = '113'
[F-CIU233] Invalid listAgencyID. Must be '113'
/[]
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'.
/[]
cbc:Name != ''
[F-CIU235] Invalid Name. Must contain a value
/[]
cbc:Value != ''
[F-CIU236] 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
/[]
cbc:ID != ''
[F-CIU237] 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(normalize-space(cbc:AddressFormatCode) = 'StructuredDK' or normalize-space(cbc:AddressFormatCode) = 'StructuredLax' or normalize-space(cbc:AddressFormatCode) = 'StructuredID' or normalize-space(cbc:AddressFormatCode) = 'StructuredRegion' or normalize-space(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
/[]
cbc:Name != ''
[F-CIU246] Invalid Name. Must contain a value
/[]
cbc:Value != ''
[F-CIU247] 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
/[]
cbc:ID != ''
[F-CIU248] Invalid ID. Must contain a value
/[]
cbc:Name != ''
[F-CIU238] Invalid Name. Must contain a value
/[]
cbc:Value != ''
[F-CIU239] 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
/[]
cbc:ID != ''
[F-CIU240] Invalid ID. Must contain a value
/[]