On 18 Jan 2006, at 12:05 pm, Andreas Sewe wrote:

Note, however, that a type attribute on the content element cannot be used since /img is a negotiated resource -- this violates the SHOULD in 4.1.3.2.: 'If the "src" attribute is present, the "type" attribute SHOULD be provided [...].'

Note the next sentence:

"The value is advisory"

So it doesn't have to exactly describe the resource at the other end of the URL. The point is to give the consuming application a useful hint as to what kind of data is there.

Which of the above entries is preferable?

The correct thing to do is to pick the one provided by default by the server when no content negotiation occurs. eg:

 <content type="image/png" href="http://www.example.com/img"; />

Graham

Reply via email to