@@uuid="metadata.custom.feature-catalog/feature-catalog-identifier"

$name.CharacterString=concatenate(if_then_else(isNull("title"), "name", "title"), ' (objectencatalogus)')

$scope.CharacterString=if_then_else(isNull("metadata.custom.topic-category[0]"), 'geoscientificInformation', "metadata.custom.topic-category")

$versionNumber.CharacterString=if_then_else(isNull("metadata.custom.edition") , '1', "metadata.custom.edition")

$versionDate.DateTime=if_then_else(isNull("metadata.custom._timestamp"), "Expression/NIL", dateFormat('YYYY-MM-dd''T''HH:mm:ss', "metadata.custom._timestamp"))

$producer.CI_ResponsibleParty.organisationName.CharacterString=if_then_else(greaterThan(size("metadata.custom.metadata-contact/organisation"), 0), "metadata.custom.metadata-contact/organisation[1]", "Expression/NIL")
$producer.CI_ResponsibleParty.contactInfo.CI_Contact.address.CI_Address.deliveryPoint.CharacterString=if_then_else(greaterThan(size("metadata.custom.metadata-contact/contactinfo/delivery-point"), '0'), "metadata.custom.metadata-contact/contactinfo/delivery-point[1]", "Expression/NIL")
$producer.CI_ResponsibleParty.contactInfo.CI_Contact.address.CI_Address.city.CharacterString=if_then_else(greaterThan(size("metadata.custom.metadata-contact/contactinfo/city"), '0'), "metadata.custom.metadata-contact/contactinfo/city[1]", "Expression/NIL")
$producer.CI_ResponsibleParty.contactInfo.CI_Contact.address.CI_Address.postalCode.CharacterString=if_then_else(greaterThan(size("metadata.custom.metadata-contact/contactinfo/postal-code"), '0'), "metadata.custom.metadata-contact/contactinfo/postal-code[1]", "Expression/NIL")
$producer.CI_ResponsibleParty.contactInfo.CI_Contact.address.CI_Address.country.CharacterString=if_then_else(greaterThan(size("metadata.custom.metadata-contact/contactinfo/country"), '0'), "metadata.custom.metadata-contact/contactinfo/country[1]", "Expression/NIL")
$producer.CI_ResponsibleParty.contactInfo.CI_Contact.address.CI_Address.electronicMailAddress.CharacterString=if_then_else(greaterThan(size("metadata.custom.metadata-contact/contactinfo/email"), '0'), "metadata.custom.metadata-contact/contactinfo/email[1]", "Expression/NIL")
$producer.CI_ResponsibleParty.contactInfo.CI_Contact.onlineResource.CI_OnlineResource.linkage.URL=if_then_else(greaterThan(size("metadata.custom.metadata-contact/contactinfo/website"), '0'), "metadata.custom.metadata-contact/contactinfo/website[1]", "Expression/NIL")
$producer.CI_ResponsibleParty.role.CI_RoleCode.@codeList=if_then_else(greaterThan(size("metadata.custom.metadata-contact/role"), '0'), 'http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#CI_RoleCode', "Expression/NIL")
$producer.CI_ResponsibleParty.role.CI_RoleCode.@codeListValue=if_then_else(greaterThan(size("metadata.custom.metadata-contact/role"), '0'), "metadata.custom.metadata-contact/role[1]", 'pointOfContact')
$producer.CI_ResponsibleParty.role.CI_RoleCode=if_then_else(greaterThan(size("metadata.custom.metadata-contact/role"), '0'), "metadata.custom.metadata-contact/role[1]", 'pointOfContact')

$featureType.FC_FeatureType.typeName.LocalName=concatenate("name", 'Type')
$featureType.FC_FeatureType.isAbstract.Boolean='false'
$featureType.FC_FeatureType.featureCatalogue.@uuidref="metadata.custom.feature-catalog/feature-catalog-identifier"

featureType.FC_FeatureType.definition.CharacterString="metadata.custom.feature-catalog/feature-type/feature-type-definition"

featureType.FC_FeatureType.carrierOfCharacteristics%.FC_FeatureAttribute.memberName.LocalName="metadata.custom.feature-catalog/feature-type/feature-attribute/name"
featureType.FC_FeatureType.carrierOfCharacteristics%.FC_FeatureAttribute.valueType.TypeName.aName.CharacterString="metadata.custom.feature-catalog/feature-type/feature-attribute/type"
featureType.FC_FeatureType.carrierOfCharacteristics%.FC_FeatureAttribute.length.CharacterString="metadata.custom.feature-catalog/feature-type/feature-attribute/length"
featureType.FC_FeatureType.carrierOfCharacteristics%.FC_FeatureAttribute.definition.CharacterString="metadata.custom.feature-catalog/feature-type/feature-attribute/definition"
featureType.FC_FeatureType.carrierOfCharacteristics%.FC_FeatureAttribute.cardinality.Multiplicity.range.MultiplicityRange.lower.Integer="metadata.custom.feature-catalog/feature-type/feature-attribute/min-occurrence"
featureType.FC_FeatureType.carrierOfCharacteristics%.FC_FeatureAttribute.cardinality.Multiplicity.range.MultiplicityRange.upper.UnlimitedInteger="metadata.custom.feature-catalog/feature-type/feature-attribute/max-occurrence"
featureType.FC_FeatureType.carrierOfCharacteristics%.FC_FeatureAttribute.cardinality.Multiplicity.range.MultiplicityRange.upper.UnlimitedInteger.@isInfinite=false
featureType.FC_FeatureType.carrierOfCharacteristics%.FC_FeatureAttribute.listedValue%.FC_ListedValue.label.CharacterString="metadata.custom.feature-catalog/feature-type/feature-attribute/domain/value"
featureType.FC_FeatureType.carrierOfCharacteristics%.FC_FeatureAttribute.listedValue%.FC_ListedValue.definition.CharacterString="metadata.custom.feature-catalog/feature-type/feature-attribute/domain/definition"
featureType.FC_FeatureType.carrierOfCharacteristics%.FC_FeatureAttribute.listedValue%.FC_ListedValue.code.CharacterString="metadata.custom.feature-catalog/feature-type/feature-attribute/domain/code"
