diff --git a/metadata/1.3/xml/ets-md-xml-bsxets.xml b/metadata/1.3/xml/ets-md-xml-bsxets.xml index b525dd248..0c4e01c0a 100644 --- a/metadata/1.3/xml/ets-md-xml-bsxets.xml +++ b/metadata/1.3/xml/ets-md-xml-bsxets.xml @@ -8,11 +8,11 @@ This is a draft version. It has limitations and is expected to contain errors. Please report any issues or problems in GitHub.

Source: Conformance Class 'XML encoding of ISO 19115/19119 metadata']]> ../../../inspire-md-bsxets.xq - 0.2.0 + 0.2.1 interactive instruments GmbH 2016-08-30T00:00:00Z interactive instruments GmbH - 2017-02-21T17:00:00Z + 2020-01-30T15:40:00Z @@ -98,9 +98,11 @@ let $messages := else for $file in $db return - if ($file/element()/@xsi:schemaLocation) then + if ($file/element()) then let $result := - if ( contains($file/element()/@xsi:schemaLocation, 'http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/gmd/gmd.xsd') or contains($file/element()/@xsi:schemaLocation, 'http://www.isotc211.org/2005/gmd/gmd.xsd')) then + if (not($file/element()/@xsi:schemaLocation)) then + try{ validate:xsd($file, 'https://inspire.ec.europa.eu/draft-schemas/inspire-md-schemas-temp/apiso-inspire/apiso-inspire.xsd') } catch * { $err:description } + else if ( contains($file/element()/@xsi:schemaLocation, 'http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/gmd/gmd.xsd') or contains($file/element()/@xsi:schemaLocation, 'http://www.isotc211.org/2005/gmd/gmd.xsd')) then try{ validate:xsd($file, 'https://inspire.ec.europa.eu/draft-schemas/inspire-md-schemas-temp/apiso-inspire/apiso-inspire.xsd') } catch * { $err:description } else try{ validate:xsd($file) } catch * { $err:description } @@ -112,7 +114,9 @@ let $messages := for $record in $records let $rid := $record/gmd:fileIdentifier/*/text() let $result := - if ( contains($record/element()/@xsi:schemaLocation, 'http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/gmd/gmd.xsd') or contains($record/element()/@xsi:schemaLocation, 'http://www.isotc211.org/2005/gmd/gmd.xsd')) then + if (not($record/element()/@xsi:schemaLocation)) then + try{ validate:xsd($file, 'https://inspire.ec.europa.eu/draft-schemas/inspire-md-schemas-temp/apiso-inspire/apiso-inspire.xsd') } catch * { $err:description } + else if ( contains($record/element()/@xsi:schemaLocation, 'http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/gmd/gmd.xsd') or contains($record/element()/@xsi:schemaLocation, 'http://www.isotc211.org/2005/gmd/gmd.xsd')) then try{ validate:xsd($record, 'https://inspire.ec.europa.eu/draft-schemas/inspire-md-schemas-temp/apiso-inspire/apiso-inspire.xsd') } catch * { $err:description } else try{ validate:xsd($record) } catch * { $err:description }