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

ETF XML Schema validation: Valid service metadata failed with srv.xsd OGC schema #173

Open
dgterritorio opened this issue Aug 6, 2018 · 3 comments
Labels
helpdesk helpdesk

Comments

@dgterritorio
Copy link

Test report: hhttp://inspire-sandbox.jrc.ec.europa.eu/etf-webapp//v2/TestRuns/EIDeeee370d-7d3c-46b2-9fea-4c90f72b61e5.html

Conformant class: https://github.com/inspire-eu-validation/metadata/tree/1.3/xml-encoding
teste4sdg.zip

This service metadata file is valid with xsi:schemaLocation="http://www.isotc211.org/2005/srv http://schemas.opengis.net/iso/19139/20070417/srv/1.0/srv.xsd" using XML Spy, but fails with ETF:
XML document 'teste4sdg.xml': 1:450: cvc-elt.1.a: Cannot find the declaration of element 'gmd:MD_Metadata'.

@KathiSchleidt
Copy link

Any hope of progress on this issue? I just tried with a complaint srv MD doc (least XMLSpy claims its compliant) and am still running into this issue. Alternatively, what's the status on maintaining service metadata within INSPIRE

@inakidiazdecerio inakidiazdecerio added the helpdesk helpdesk label Mar 12, 2019
@inakidiazdecerio
Copy link
Contributor

Dear @dgterritorio,

First of all, thank you for reporting this issue. We are happy to inform you that we have found the solution for the issue.

The schemaLocation of your file doesn't contain the namespace with the definition of gmd:MD_Metadata element. That's why the ETF validator is showing you that message.

To fix the issue, you should have to add "http://www.isotc211.org/2005/gmd https://www.isotc211.org/2005/gmd/metadataApplication.xsd" in the atributte xsi:schemaLocation (see the attached image).

Best regards.

schemaLocation

@dgterritorio
Copy link
Author

Dear @inakidiazdecerio
thank you for your answer.
After added the other XML schema to the metadata file like you suggest, now I get this error in XML Spy:

File C:\Users\hean_admin\Downloads\teste4sdg\teste4sdg.xml could not be validated because of an error in XML Schema/DTD (see below)
	File http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/gmd/metadataApplication.xsd is not valid.
		'gmd:DS_StereoMate' is already declared in schema document 'https://www.isotc211.org/2005/gmd/metadataApplication.xsd'.
			Error location: xs:schema / xs:element
			Details
				sch-props-correct.2: 'gmd:DS_StereoMate' is already declared in schema document 'https://www.isotc211.org/2005/gmd/metadataApplication.xsd'.

Probably in srv schema there are already defined some of the gmd elements, specially the identification metadata elements.

Best regards,

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

No branches or pull requests

3 participants