Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test suites are not able to access/use the ISO schemas #198

Closed
fabiovin opened this issue Apr 18, 2019 · 1 comment
Closed

Test suites are not able to access/use the ISO schemas #198

fabiovin opened this issue Apr 18, 2019 · 1 comment

Comments

@fabiovin
Copy link

Description

Test suites are not able to access/use the ISO schemas (from the repository: http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas).
For instance, if in the metadata the following value - xsi:schemaLocation="http://www.isotc211.org/2005/gmx http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/gmx/gmx.xsd http://www.isotc211.org/2005/gmd http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/gmd/gmd.xsd - is declared, the schema validation fails. The same metadata successfully validates with XMLSpy.

Related discussion: inspire-eu-validation/ets-repository#244

Steps to Reproduce

[Describe the exact steps which can be used to reproduce the problem]

  1. Open the INSPIRE Validator and select the "Conformance class: Metadata for interoperability" under the Metadata Test suite.
  2. Upload the attached xml file and validate it.

Expected behavior: Successfully schema validation (Schema validation: md-xml.a.1: valiadate XML documents).

Actual behavior: The dataset has 1 file(s) with errors for this assertion.
XML document 'OSOpenNames_iso_https.xml': The file has 2 schema validation error(s).
XML document 'OSOpenNames_iso_https.xml': -1:-1: Premature end of file.
XML document 'OSOpenNames_iso_https.xml': -1:-1: Premature end of file.

OSOpenNames_iso.zip

@cportele
Copy link
Contributor

It is not an ETF issue. If I try to validate the XML file using Xerces-J on the command line or online at https://www.freeformatter.com/xml-validator-xsd.html I get the same error. That is, the issue is not specific to ETF and occurs in a number of schema validation contexts. I am, therefore, closing this issue here.

In any case, since the standard.iso.org server uses HSTS, I would use https-URIs for the schema references, not http-URIs. However, that is unlikely to solve the issue as the schema documents in the ISO schema repository use http-URIs themselves... Maybe ignore the ISO server and use the OGC schema repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants