- From: Nilo Mitra (EUS) <Nilo.Mitra@am1.ericsson.se>
- Date: Wed, 14 May 2003 15:23:31 -0500
- To: "'Elliotte Rusty Harold'" <elharo@metalab.unc.edu>
- Cc: xmlp-comments@w3.org
Hi Elliotte: The XMLP group discussed your comment below (identified as PR Issue 426 [1]), and has agreed to accept your second suggestion below to include the q value to indicate the preference for the application/soap+xml media type. This will be reflected in the next editor's copy of the Primer. Thank you, Nilo (on behalf of the XMLP WG) [1] http://www.w3.org/2000/xp/Group/xmlp-pr-issues.html#x426 > -----Original Message----- > From: Elliotte Rusty Harold [mailto:elharo@metalab.unc.edu] > Sent: Thursday, May 08, 2003 7:54 AM > To: xmlp-comments@w3.org > Cc: xml-dist-app@w3.org > Subject: Incorrect Example 8a in section 4.1.1 > > > > Example 8a in section 4.1.1 of the Primer is incorrectly described. > The example is > > GET /travelcompany.example.org/reservations?code=FT35ZBQ HTTP/1.1 > Host: travelcompany.example.org > Accept: text/html, application/soap+xml > > The explanatory text is "The HTTP Accept header is used to indicate > the preferred representation of the resource being requested, which > in this example is an "application/soap+xml" media type for > consumption by a machine client, rather than the "text/html" media > type for rendition by a browser client for consumption by a human." > > However, there is nothing in Example 8a that indicates that > application/soap+xml is preferable to text/html. The client > indicates > that it is willing to accept either one with equal priority (the > default q=1). In order to indicate that application/soap+xml is > preferred the example shoudl either remove text/html from the Accept > header completely or adjust the relative q values of the MIME types > accepted. For example, > > GET /travelcompany.example.org/reservations?code=FT35ZBQ HTTP/1.1 > Host: travelcompany.example.org > Accept: text/html; q=0.5, application/soap+xml > -- > > Elliotte Rusty Harold > elharo@metalab.unc.edu > Processing XML with Java (Addison-Wesley, 2002) > http://www.cafeconleche.org/books/xmljava > http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA >
Received on Wednesday, 14 May 2003 16:23:57 UTC