On Jan 17, 2005, at 11:17 AM, Robert Sayre wrote:
For instance, what does it mean to include an xml:lang declaration on atom:updated?Clearly, it means nothing, and such an occurrence can safely be ignored or discarded. What am I missing? -Tim
Let's say I use an Atom protocol client to PUT an entry that has an xml:lang attribute. Is it ok for the server to respond with a 204 if drops the xml:lang declaration? After all, that's exactly not what I PUT there.
The semantics of xml:lang (http://www.w3.org/TR/REC-xml/#sec-lang-tag) are very clear. Given the definition of atom:updated, it is unambiguously true that such an attribute can have no effect. I would drop it and return 204 without a moment's worry.
I think David is asking for the spec to declare when xml:lang can be "safely ignored and discarded". Put another way, where is it part of the Atom model.
Draft format-04 says "Requirements regarding the content and interpretation of xml:lang are specified in XML 1.0 [W3C.REC-xml-20040204] Section 2.12." If the element or attribute so labeled contains free text, xml:lang is relevant. If not, not. If you don't know (i.e. on some other-namespace exception), you'd better preserve it. -Tim
