w3c / dx-connegp

Content Negotiation by Profile
https://w3c.github.io/dx-connegp/connegp/
Other
6 stars 5 forks source link

Use of text/xml vs application/xml media types #61

Closed YoucTagh closed 9 months ago

YoucTagh commented 9 months ago

In the document, the media type is sometimes text/xml and sometimes application/xml.

Both media types are correct, but in examples 19 and 20, there is a mismatch between the URI and the Link header parameters, for instance:

...
<http://example.org/resource/a?view=profile-y&format=text/xml>;
          rel="alternate";
          type="application/xml";
          formats="http://otherexample.org/profile/y"
...
rob-metalinkage commented 9 months ago

convert all text/xml to application/xml,

review implementations to make sure they are consistent between request and response at least, and preferable use application/xml.