W3C home > Mailing lists > Public > xmlp-comments@w3.org > May 2003

RE: Incorrect Example 8a in section 4.1.1

From: Nilo Mitra (EUS) <Nilo.Mitra@am1.ericsson.se>
Date: Wed, 14 May 2003 15:23:31 -0500
Message-ID: <77BEF8ACD6CB1B4DA605D9D9CF554AEB126A5A@eamrcnt727.exu.ericsson.se>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 October 2009 08:42:28 GMT