The media type of the XML schemas available at https://schemas.isotc211.org/ is currently binary/octet-stream (e.g. for https://schemas.isotc211.org/19139/-/gmx/1.0/gmx.xsd), whereas the media type of the XML schemas available at the OGC schema service is application/xml (e.g. http://schemas.opengis.net/iso/19139/20070417/gmx/gmx.xsd). This has implications on how clients handles those file: for binary/octet-stream, a browser would typically offer to download the file, whereas for application/xml, a browser would typically display the file in the browser, without having to download it first.
I created a new version of a set of XML schema files for a certain project. One change is the schema location for http://www.isotc211.org/2005/gmx, I changed that to the official schema location, using the official ISO schemas instead of the unofficial (I think?) OGC schemas.
I cannot reproduce the error locally… (tested in a Java environment, using Xerces for Java, but the supplier uses .NET, so there is a difference there as well).
I cannot see any changes between the gmx.xsd at OGC and the gmx.xsd at the TC 211 schema server, so the issue does not seem to be there.
Any clues on other causes of this error than the change of media type would be welcome!
The media type of the XML schemas available at https://schemas.isotc211.org/ is currently
binary/octet-stream
(e.g. for https://schemas.isotc211.org/19139/-/gmx/1.0/gmx.xsd), whereas the media type of the XML schemas available at the OGC schema service isapplication/xml
(e.g. http://schemas.opengis.net/iso/19139/20070417/gmx/gmx.xsd). This has implications on how clients handles those file: forbinary/octet-stream
, a browser would typically offer to download the file, whereas forapplication/xml
, a browser would typically display the file in the browser, without having to download it first.Would it be possible to set up https://schemas.isotc211.org/ so the XML schemas have media type
application/xml
?E.g.
Background
I created a new version of a set of XML schema files for a certain project. One change is the schema location for
http://www.isotc211.org/2005/gmx
, I changed that to the official schema location, using the official ISO schemas instead of the unofficial (I think?) OGC schemas.According to the supplier that has to implement the schemas, this results in the following error: “The global element 'http://www.isotc211.org/2005/gmd:EX_TemporalExtent' has already been declared.” The supplier asked whether this difference in behaviour between http://schemas.opengis.net/iso/19139/20070417/gmx/gmx.xsd and https://schemas.isotc211.org/19139/-/gmx/1.0/gmx.xsd as explained above, could be the reason behind this error.
I cannot reproduce the error locally… (tested in a Java environment, using Xerces for Java, but the supplier uses .NET, so there is a difference there as well).
I cannot see any changes between the gmx.xsd at OGC and the gmx.xsd at the TC 211 schema server, so the issue does not seem to be there.
Any clues on other causes of this error than the change of media type would be welcome!