This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 30245 - [XSLT30] The section on attribute media-type does not give defaults for json and adaptive
Summary: [XSLT30] The section on attribute media-type does not give defaults for json ...
Status: NEW
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Recommendation
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-09 15:09 UTC by Abel Braaksma
Modified: 2018-04-09 15:09 UTC (History)
0 users

See Also:


Attachments

Description Abel Braaksma 2018-04-09 15:09:49 UTC
Currently, the section on media-type in Section 26 Serialization says:

> The value of the media-type attribute provides the value of the media-type 
> parameter to the serialization method. The default value is text/xml in the 
> case of the xml output method, text/html in the case of the html and xhtml 
> output methods, and text/plain in the case of the text output method. 
This fails to mention what the media type should be for the other standard output methods: json and adaptive.

I'm not sure about adaptive (implementation-defined?), but json should probably have the proper IANA encoding: "application/json".

Source: http://www.ietf.org/rfc/rfc4627.txt (which would could mention in the references, if that makes sense).