<?xml version='1.0' encoding='utf-8' standalone='yes'?>
<?xml-stylesheet type='text/xsl' href='/style/atom-comments.xsl'?>
<feed xmlns='http://www.w3.org/2005/Atom'>
<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>2007-12-30T13:17:03Z</updated>

<entry xmlns:foaf='http://xmlns.com/foaf/0.1/'>
<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/2007/11/12/implNamespaces#comment0001</id>
<published>2007-11-12T23:39:30Z</published>
<updated>2007-11-12T23:39:30Z</updated>
<author>
  <name>John Cowan</name>
  <foaf:mbox_sha1sum>02e728ba6f922a41e37329c3a52b7fa0a787765f</foaf:mbox_sha1sum>
  <uri>http://www.ccil.org/~cowan</uri>
</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 xmlns:foaf='http://xmlns.com/foaf/0.1/'>
<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/2007/11/12/implNamespaces#comment0002</id>
<published>2007-11-14T09:15:32Z</published>
<updated>2007-11-14T09:15:32Z</updated>
<author>
  <name>Colin Adams</name>
  <foaf:mbox_sha1sum>0b3277e1bcbad46fa737ca16b2a116b83c8f170f</foaf:mbox_sha1sum>
  <uri>http://colina.demon.co.uk</uri>
</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 xmlns:foaf='http://xmlns.com/foaf/0.1/'>
<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/2007/11/12/implNamespaces#comment0003</id>
<published>2007-11-14T11:11:41Z</published>
<updated>2007-11-14T11:11:41Z</updated>
<author>
  <name>David Carlisle</name>
  <foaf:mbox_sha1sum>ac4bbb0ce3a3e02cc386fe410164dc831b49c1ce</foaf:mbox_sha1sum>
  <uri>http://dpcarlisle.blogspot.com/</uri>
</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 xmlns:foaf='http://xmlns.com/foaf/0.1/'>
<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/2007/11/12/implNamespaces#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>f0a84750dd9c9ffbac8dc21efa41470ff3694ee0</foaf:mbox_sha1sum>
  <uri>http://dehora.net/journal</uri>
</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 xmlns:foaf='http://xmlns.com/foaf/0.1/'>
<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/2007/11/12/implNamespaces#comment0005</id>
<published>2007-11-15T19:53:44Z</published>
<updated>2007-11-15T19:53:44Z</updated>
<author>
  <name>Liam Quin</name>
  <foaf:mbox_sha1sum>4f6d213de6f8c312ec478fc6388a4cf833aaa20d</foaf:mbox_sha1sum>
  <uri>http://www.holoweb.net/~liam/</uri>
</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 xmlns:foaf='http://xmlns.com/foaf/0.1/'>
<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/2007/11/12/implNamespaces#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>6a494377ada735e0a0d9154a359ab2f38de3c643</foaf:mbox_sha1sum>
  <uri>http://roy.gbiv.com/</uri>
</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 xmlns:foaf='http://xmlns.com/foaf/0.1/'>
<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/2007/11/12/implNamespaces#comment0007</id>
<published>2007-11-17T13:17:41Z</published>
<updated>2007-11-17T13:17:41Z</updated>
<author>
  <name>Benjamin Carlyle</name>
  <foaf:mbox_sha1sum>b9bb405984e4b93be5ee3ecdaf0d213d6080511a</foaf:mbox_sha1sum>
  <uri>http://soundadvice.id.au/blog/</uri>
</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 xmlns:foaf='http://xmlns.com/foaf/0.1/'>
<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/2007/11/12/implNamespaces#comment0008</id>
<published>2007-11-19T22:22:07Z</published>
<updated>2007-11-19T22:22:07Z</updated>
<author>
  <name>Sebastian Snopek</name>
  <foaf:mbox_sha1sum>5f162bcf79d072444120d91b93fde7081e89c844</foaf:mbox_sha1sum>
  <uri>http://www.t4tw.info</uri>
</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 xmlns:foaf='http://xmlns.com/foaf/0.1/'>
<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/2007/11/12/implNamespaces#comment0009</id>
<published>2007-12-29T13:35:59Z</published>
<updated>2007-12-29T13:35:59Z</updated>
<author>
  <name>Irek Wajdylo</name>
  <foaf:mbox_sha1sum>5b470d70756839676de7e0990da741f0a18f4a2c</foaf:mbox_sha1sum>
  <uri>http://www.e-unlimited.net</uri>
</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 xmlns:foaf='http://xmlns.com/foaf/0.1/'>
<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/2007/11/12/implNamespaces#comment0010</id>
<published>2007-12-30T13:17:02Z</published>
<updated>2007-12-30T13:17:02Z</updated>
<author>
  <name>Andrea Crevola</name>
  <foaf:mbox_sha1sum>caef4fb7a515dad19a72d55c58b6c084d7e6346b</foaf:mbox_sha1sum>
  <uri>http://www.allster.info/</uri>
</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>

</feed>
