<feed xmlns="http://www.w3.org/2005/Atom" xmlns:foaf="http://xmlns.com/foaf/0.1/"><title>norman.walsh.name: Comments on /2007/11/12/implNamespaces</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2007/11/12/implNamespaces"/><id>http://norman.walsh.name/2007/11/12/implNamespaces/comments.atom</id><updated>2012-02-13T08:11:21.096259Z</updated><entry><title>Comment 1 on /2007/11/12/implNamespaces</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2007/11/12/implNamespaces#comment0001"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0001</id><published>2007-11-12T23:39:30Z</published><updated>2007-11-12T23:39:30Z</updated><author><name>John Cowan</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>Listen, if I can &lt;span xml:lang="sco"&gt;threep it doun the thrapples&lt;/span&gt; of TagSoup users that HTML script and style element have SGML CDATA content models, a little bit of noise around implicit namespaces shouldn't be so very hard to swallow.</p>
  </div></content></entry><entry><title>Comment 2 on /2007/11/12/implNamespaces</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2007/11/12/implNamespaces#comment0002"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0002</id><published>2007-11-14T09:15:32Z</published><updated>2007-11-14T09:15:32Z</updated><author><name>Colin Adams</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>I think there are additional problems apart from the possible loss of the content-type label (which is bad enough).
</p>
    <p>
What if the content-type is wrong? In the case of xml where the content encoding clashes with the xml declaration, there is a clear error situation. With implicit namespaces there is not (unless the parser is also supposed to infer the namespace from the root element name - I think not!), so mis-labelled entities may not be easily detected.
</p>
    <p>
And why pretend that HTML is actually XHTML (which inferring the xhtml namespace seems to imply)? This is going to cause real problems if an html browser sees an svg tab (without a namespace), and treats it as SVG (this is the sort of thing fault-tolerant - nay - fault ENCOURAGING, technology currently does (I don't know if it does it for SVG, but if not now, it probably will soon).
</p>
    <p>
The XML parser is going to infer the XHTML namespace for the svg element (and so throw a validation error if it is a validating parser). So we are getting different treatment between the browser and the XML processor.
</p>
    <p>
I can't see any benefit in any of this.</p>
  </div></content></entry><entry><title>Comment 3 on /2007/11/12/implNamespaces</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2007/11/12/implNamespaces#comment0003"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0003</id><published>2007-11-14T11:11:41Z</published><updated>2007-11-14T11:11:41Z</updated><author><name>David Carlisle</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">Given that html5 is to a large extent trying to specify parsing behaviour similar to that of existing browsers, (but without a dtd) it could be argued that defaulting the namespace is closer to current behaviour than not defaulting it. If you use the xhtml+svg+mathml dtd for example, it defaults all three main namespaces (using dtd attribute defaulting, because it's a dtd:-) but the end result for the user is that assuming (possibly falsely)
that the system reads the dtd the user can already go ............

<p>Certainly in an HTML context, if "foreign" languages such as math and svg are going to be allowed (yes please!) you probably don't want to force the user to use the explicit xml-inspired namespace markup.</p><p> The amount of "harm" done by these kind of defaults depends a lot on where the defaulting happens. If you have a fragment of mathml in your browser you can (today) cut and paste that fragment and drop it into another mathml application (microsoft word to give a somewhat surprising, but pleasing, example) If however the stuff that is pasted in isn't namespaced then it won't work
(getting xslt1 to work with elements that may or may not be in a namespace is a pain, as you must know from docbook). If however the defaulting happens on parsing and the DOM is fully namespaced and what is killed and yanked is a linearisation of that DOM fragment, not a fragment of the source, then defaulting namespaces (and other HTML-style defaults such as end tag omission, are far less intrusive.</p></div></content></entry><entry><title>Comment 4 on /2007/11/12/implNamespaces</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2007/11/12/implNamespaces#comment0004"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0004</id><published>2007-11-14T23:27:56Z</published><updated>2007-11-14T23:27:56Z</updated><author><name>Bill de hOra</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>I saw two problems, over all others, from XML in-the-trenches and XML in-the-standards. 
</p>
    <p>
1: specifically, acquisition/inheritance in markup sucks.
</p>
    <p>
2: generally, implicitness in markup sucks. 
</p>
    <p>
I'm not sure what the idea gets you. 
</p>
    <p>
"There's also the nasty case of what to do when the representation loses its associated media type, when it's stored on a local file system, for example, but we already have that problem to a certain extent. This exacerbates the problem though, for sure."
</p>
    <p>
I was thinking there's a big assumption for the proposal to work - that markup is being _sent_ (via MIMEish protocols). That's aside from browsers et al being up to this at all (try sending an Atom document into firefox with an embedded xhtml namespace - I had to make late changes to a project last year to deal with that)</p>
  </div></content></entry><entry><title>Comment 5 on /2007/11/12/implNamespaces</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2007/11/12/implNamespaces#comment0005"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0005</id><published>2007-11-15T19:53:44Z</published><updated>2007-11-15T19:53:44Z</updated><author><name>Liam Quin</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>When we were designing namespaces I really really wanted the namespace URI to identify a catalogue or manifest of some kind that would let you combine namespaces in a meaningful way.  You'd say that your foo namespace was actually the union of HTML, SVG and Bird Watching Report, for example, with unlabeled conflicts resolved in that order.
</p>
    <p>
It didn't get traction for a number of reasons, and I suspect it's too late now.  I can imagine some kind of Namespace Definition Language for the purpose, with only a little effort...
</p>
    <p>
I think in practice "implicit namespaces" make perfect sense, although I agree about the problem when content becomes disassociated from a MIME media type, which is almost any time anyone does anything with it beyond looking at it in a Web browser, unfortunately.</p>
  </div></content></entry><entry><title>Comment 6 on /2007/11/12/implNamespaces</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2007/11/12/implNamespaces#comment0006"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0006</id><published>2007-11-16T18:47:32Z</published><updated>2007-11-16T18:47:32Z</updated><author><name>Roy T. Fielding</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>I suggested several things similar to that while I was on the TAG -- basically assuming a default URI for a given protocol/format and all undecorated names would be "resolved" relative to that URI.  It wasn't exactly shot down as much as it wasn't preferred within the realm of XML (I think we were discussing id attributes at the time).  A similar suggestion was later adopted for link relation names in Atom.</p>
  </div></content></entry><entry><title>Comment 7 on /2007/11/12/implNamespaces</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2007/11/12/implNamespaces#comment0007"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0007</id><published>2007-11-17T13:17:41Z</published><updated>2007-11-17T13:17:41Z</updated><author><name>Benjamin Carlyle</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>The deeper problem in this question is: What does a parser or processor do if it finds a node from a foreign namespace. You start processing your document from the top, knowing full well how to based on the mime type. Now you've hit a snag: Someone has decided to embed some SVG, but unless it fits semantically into the existing document structure there is no way that a processor can know what to do with it.</p>
<p>My view is that it usually isn't meaningful to add namespaces to XML elements or attributes. It is only meaningful to talk about the type of a whole sub-document, found somewhere useful such as the "content" element of an atom document. RDF documents can make effective use of namespaces only because each triple contains all necessary context to interpret that triple. In general, XML processing depends on a great deal of document context.</p>
<p>If xml namespaces are only being used to distinguish one kind of sub-document from another, all they are doing is competing with mime types. Which is better is a discussion that resolves around the need for a large namespace for document types vs the need to be able to infer super-type information such as "+xml" or "text/" from the type identifier.</p>
<p>I have started gathering <a rel="nofollow" href="http://rest.blueoxen.net/cgi-bin/wiki.pl?XMLSemanticWeb">notes on restwiki</a> as to how XML documents should be used in machine-to-machine communication. My guidance at the moment is to ignore xml namespaces completely.</p>
  </div></content></entry><entry><title>Comment 8 on /2007/11/12/implNamespaces</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2007/11/12/implNamespaces#comment0008"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0008</id><published>2007-11-19T22:22:07Z</published><updated>2007-11-19T22:22:07Z</updated><author><name>Sebastian Snopek</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>In my opinion implicitness of namespaces could be a definitely useful concept, but obviously a number of problems with processing of content using an incorrect MIME media type will arise. It is a sad fact, that most users nowadays tend to use MIME type that does not correspond to actual content.</p>
  </div></content></entry><entry><title>Comment 9 on /2007/11/12/implNamespaces</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2007/11/12/implNamespaces#comment0009"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0009</id><published>2007-12-29T13:35:59Z</published><updated>2007-12-29T13:35:59Z</updated><author><name>Irek Wajdylo</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>The idea seems to be quite interesting and surely worth exploring further. However, I'm a bit sceptic if introducing such innovations is really necessary. They would surely make our life easier and the code would be simplified a bit, but I think that using explicit namespaces gives us the assurance of valid processing of the code while implicit inferring is somewhat risky.</p>
  </div></content></entry><entry><title>Comment 10 on /2007/11/12/implNamespaces</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2007/11/12/implNamespaces#comment0010"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0010</id><published>2007-12-30T13:17:02Z</published><updated>2007-12-30T13:17:02Z</updated><author><name>Andrea Crevola</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>I'd really like to see other languages allowed in HTML. Especially use of SVG is a very temtping feature. I'm actually at odds with defaulting in gerneral. Perhaps it helps for many users to make the code look neater, but then multiple complications too often tend to come about. Particularily the danger of loss of media type while storing a file on local system bothers me. Well, time will tell if any of the namespace solutions catches up.</p>
  </div></content></entry><entry><title>Comment 11 on /2007/11/12/implNamespaces</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2007/11/12/implNamespaces#comment0011"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0011</id><published>2008-02-15T19:39:56Z</published><updated>2008-02-15T19:39:56Z</updated><author><name>Benjamin Fringe</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>The idea of incorporating other languages into HTML is surely very tempting (I'm in favour of SVG usage myself) but I a bit sceptical about the whole defaulting thing. It is probably a comfortable solution to set a default, but it can lead to many problems later, as users are extremely inventiv as far as breaking and writing invalid code is concerned.</p>
  </div></content></entry><entry><title>Comment 12 on /2007/11/12/implNamespaces</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2007/11/12/implNamespaces#comment0012"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0012</id><published>2008-03-03T19:57:36Z</published><updated>2008-03-03T19:57:36Z</updated><author><name>Tercüme bürosu</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>There's also the nasty case of what to do when the representation loses its associated media type, when it's stored on a local file system, for example, but we already have that problem to a certain extent...</p>
  </div></content></entry><entry><title>Comment 13 on /2007/11/12/implNamespaces</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2007/11/12/implNamespaces#comment0013"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0013</id><published>2008-03-05T15:33:43Z</published><updated>2008-03-05T15:33:43Z</updated><author><name>ispanyolca tercüman</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>And why pretend that HTML is actually XHTML (which inferring the xhtml namespace seems to imply)? This is going to cause real problems if an html browser sees an svg tab (without a namespace), and treats it as SVG (this is the sort of thing fault-tolerant - nay - fault ENCOURAGING, technology currently does (I don't know if it does it for SVG, but if not now, it probably will soon)..
The XML parser is going to infer the XHTML namespace for the svg element (and so throw a validation error if it is a validating parser). So we are getting different treatment between the browser and the XML processor...</p>
  </div></content></entry><entry><title>Comment 14 on /2007/11/12/implNamespaces</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2007/11/12/implNamespaces#comment0014"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0014</id><published>2008-04-22T01:16:01Z</published><updated>2008-04-22T01:16:01Z</updated><author><name>ADAC</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>Seems to me that “implicit namespaces” would only encourage lazy programming (writing invalid code). This is already a real problem.
</p>
    <p>
Instead of learning a namespace and calling it when they really want it, this would make it easier to grab pieces of code from other sites, add it too the html, and if it seems to work leaving it, never knowing what it's really suppose to do. When it stops working, complain it's the browsers fault.</p>
  </div></content></entry><entry><title>Comment 15 on /2007/11/12/implNamespaces</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2007/11/12/implNamespaces#comment0015"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0015</id><published>2008-06-15T09:34:28Z</published><updated>2008-06-15T09:34:28Z</updated><author><name>Natalia</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>I think you make a good point, but I can't even fathom the load of work that needs to be done to allow inferences.</p>
  </div></content></entry><entry><title>Comment 16 on /2007/11/12/implNamespaces</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2007/11/12/implNamespaces#comment0016"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0016</id><published>2008-06-18T21:41:40Z</published><updated>2008-06-18T21:41:40Z</updated><author><name>Kamil</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>That might be a good concept but implicit namespaces may cause problems when content is disassociated from a MIME media type.</p>
  </div></content></entry><entry><title>Comment 17 on /2007/11/12/implNamespaces</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2007/11/12/implNamespaces#comment0017"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0017</id><published>2008-09-07T05:16:59Z</published><updated>2008-09-07T05:16:59Z</updated><author><name>Greg</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>I am not sure if we need that at all, it would make simple markup language very complicated in my opinion, on the other hand i agree with @ADAC wrong use of namespaces would encourage "lazy programming" and in the end cause more harm then good.
Well but this is just my opinion.</p>
  </div></content></entry><entry><title>Comment 18 on /2007/11/12/implNamespaces</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2007/11/12/implNamespaces#comment0018"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0018</id><published>2008-09-16T20:54:11Z</published><updated>2008-09-16T20:54:11Z</updated><author><name>Tercüme</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>In my opinion implicitness of namespaces could be a definitely useful concept, but obviously a number of problems with processing of content using an incorrect MIME media type will arise. It is a sad fact, that most users nowadays tend to use MIME type that does not correspond to actual content...</p>
  </div></content></entry><entry><title>Comment 19 on /2007/11/12/implNamespaces</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2007/11/12/implNamespaces#comment0019"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0019</id><published>2008-12-14T00:10:06Z</published><updated>2008-12-14T00:10:06Z</updated><author><name>Piotr</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>I am of the opinion that implicit inferring though more convenient  can be a bit dangerous when compared to  explicit namespaces which do give  you the assurance of valid processing.</p>
  </div></content></entry></feed>

