<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Paul,</p>
<p>Why the distinction for "historical"? The XML format is the same, isn't it? The "normal" version just limits itself to a single (the most recent) version - it a simple subset of "historical".</p>
<p>Will we need a formal XSD to register these XML formats?</p>
<div> </div>
<p>--colin</p>
<p>On 2016-09-15 05:55, Paul Norman wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">I'm planning on registering MIME types for OSM formats in the vendor tree and could use feedback. If you're unfamiliar with registering MIME types, <a href="https://github.com/mapbox/vector-tile-spec/issues/48">https://github.com/mapbox/vector-tile-spec/issues/48</a> is a reasonable overview for a registration that took place with a different format.<br /><br /><br /> The obvious type for OSM XML is application/vnd.osm+xml, but there are a few unanswered questions<br /><br /> - Is .osc a different type? I'm think yes. Tools that parse one don't normally accept the other in its place, they normally have different file suffixes, and the top-level XML elements are different.<br /><br /> - Is osc returned from the server a different type from what is uploaded? I'm inclined towards no. This is more a matter of selection of valid identifiers.<br /><br /><span style="white-space: nowrap;">- Where does history fit in</span><br /><br /><span style="white-space: nowrap;">I'm inclined towards</span><br /><br /><span style="white-space: nowrap;">- application/vnd.osm+xml for OSM XML</span><br /><br /><span style="white-space: nowrap;">- application/vnd.osm.osc+xml for OsmChange XML</span><br /><br /><span style="white-space: nowrap;">- application/vnd.osm.osh+xml for historical XML</span><br /><br /> - application/vnd.osm.osmpbf for current data PBFs. pbf is not a MIME suffix.<br /><br /><span style="white-space: nowrap;">- application/vnd.osm.oshpbf for historical PBFs.</span><br /><br /><span style="white-space: nowrap;">- application/vnd.osm.o5m</span><br /><br /><span style="white-space: nowrap;">- application/vnd.osm.o5c</span><br /><br /> I'm not sure where to slot changeset data into this. Changeset data can be present in an OSM XML file alongside other data (e.g. with planet dumps) or standalone.<br /><br /><br /> _______________________________________________<br /><span style="white-space: nowrap;">dev mailing list</span><br /><span style="white-space: nowrap;"><a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a></span><br /><span style="white-space: nowrap;"><a href="https://lists.openstreetmap.org/listinfo/dev">https://lists.openstreetmap.org/listinfo/dev</a></span></div>
</blockquote>
</body></html>