Yeah, it's allowed. I've seen it done a couple times in the past. (Not that that's the reason I think it is: I've read so in XML introductory documentation.)
[Definition:] The attribute's value, a URI reference, is the namespace name identifying the namespace. The namespace name, to serve its intended purpose, should have the characteristics of uniqueness and persistence. It is not a goal that it be directly usable for retrieval of a schema (if any exists). An example of a syntax that is designed with these goals in mind is that for Uniform Resource Names [RFC2141]. However, it should be noted that ordinary URLs can be managed in such a way as to achieve these same goals.
(Granted, that's from the days of XML 1.0, and the Namespaces in XML 1.1 doesn't seem to have preserved that statement; however, both documents use URNs as XML namespaces in examples they give.)
You can substitute "indexing" for "idx" in any arbitrary xml document without specifying some equivalence? What part of the standard specifies an equivalence between the two? I know you can create new namespaces for anything, but you shouldn't be inconsistent with which ones you use.
Oooh, it looks like he changed xmlns:indexing=xmlns:idx too, so he is consistent, even if it doesn't actually reflect what the log message says for the name of the namespace. I'd find it weird if the XML standard actually had some 'hard coded' part of it that actually said you could just arbitrarily substitute specific strings like idx=indexing as if they were the same namespace.
The whole point of XML namespaces is that the prefix doesn't matter. What matters is the Namespace URI "urn:atom-extension:indexing" -- when you get the attribute, you're going to do element.getAttribute("urn:atom-extension:indexing", "indexing"), so the idx/indexing will never play into it. He could change it tomorrow to "njyoder", and it wouldn't matter any more in that case.
(Granted, not all code is smart enough to use namespaces: but the whole point of extensions like this is to be based on the URI, so code that breaks because of a prefix differences has absolutely no business in anything that people should expect to work reliably.)
Yep. That's the way XML namespaces (and the prefixes associated with them) work. As I said, applications can (and often do, in simple cases) just use the NS binding, especially if it's a popular/well known one (foaf, for example, will probably always refer to http://xmlns.com/foaf/0.1/), but that's not the ideal way of dealing with XML namespaced content.
sadly, i've seen code that does exactly that wrong thing. sorta makes me wanna arbitrarily rename all of my namespaces just to break peoples' broken software, but i don't think i've ever had a use for xml namespaces...
Yeah, and much of my code does the wrong thing, but I've never written code, involving XML, that was for distribution. So I don't feel *too* bad about it.
I do change namespaces in my RDF docs just to fuck with people though: usually using the null namespace prefix where people don't expect it.
Atom change may have broken feed reading in Thunderbird
Is this change why Thunderbird 1.0.6 feed reader now says my LJ atom feeds are invalid? Was working last week, but is now broken. So definately coincidental to this change.
Maybe Thunderbird can't handle namespaces in atom? Any idea how to investigate further?
September 26 2005, 18:42:56 UTC 6 years ago
September 26 2005, 19:17:12 UTC 6 years ago
September 26 2005, 19:50:56 UTC 6 years ago
(But that doesn't necessarily mean it's wrong.
xmllintdoesn't seem to mind, though the--validflag causes it to complain about a missing DTD.)September 26 2005, 20:18:30 UTC 6 years ago
September 26 2005, 21:21:32 UTC 6 years ago
September 26 2005, 18:49:55 UTC 6 years ago
September 26 2005, 19:15:49 UTC 6 years ago
September 26 2005, 19:20:03 UTC 6 years ago
[feed xmlns='http://www.w3.org/2005/Atom' indexing:index="no" xmlns:indexing="urn:atom-extension:index
But the actual modification to the Atom document by the code is to idx:index.
September 26 2005, 19:35:58 UTC 6 years ago
September 26 2005, 19:47:58 UTC 6 years ago
September 26 2005, 19:58:23 UTC 6 years ago
September 26 2005, 20:12:43 UTC 6 years ago
September 26 2005, 20:24:01 UTC 6 years ago
(Granted, not all code is smart enough to use namespaces: but the whole point of extensions like this is to be based on the URI, so code that breaks because of a prefix differences has absolutely no business in anything that people should expect to work reliably.)
September 26 2005, 20:27:30 UTC 6 years ago
September 26 2005, 21:02:58 UTC 6 years ago
September 26 2005, 21:17:20 UTC 6 years ago
September 26 2005, 21:32:46 UTC 6 years ago
I do change namespaces in my RDF docs just to fuck with people though: usually using the null namespace prefix where people don't expect it.
September 27 2005, 16:11:02 UTC 6 years ago
Atom change may have broken feed reading in Thunderbird
Is this change why Thunderbird 1.0.6 feed reader now says my LJ atom feeds are invalid? Was working last week, but is now broken. So definately coincidental to this change.Maybe Thunderbird can't handle namespaces in atom? Any idea how to investigate further?