W3C home > Mailing lists > Public > public-html@w3.org > November 2009

Re: Namespace-aware APIs do not need to suck

From: Edward O'Connor <hober0@gmail.com>
Date: Wed, 4 Nov 2009 13:36:39 -0800
Message-ID: <3b31caf90911041336j43068ad6saa171391675d3898@mail.gmail.com>
To: Julian Reschke <julian.reschke@gmx.de>
Cc: public-html@w3.org
> In today's panel it was pointed out that people do not "get" that the
> real identifier for an element type is a tuple (namespaceURI,
> localName), and thus URI-based extensibility is a problem.

Indeed. Note that this is both a syntax-over-the-wire problem as well as
an API problem.

> My experience in other spaces that use URI-based extensibility is that
> this problem goes away once you use an API that actually takes
> namespaces into account.
[...]
> To address the "tuple" problem, a very simple approach is to use the
> so-called "Clark" notation (<http://www.jclark.com/xml/xmlns.htm>),
> where the tuple (namespaceURI, localName) is simply replaced by the
> string
>
>  {namespaceURI}localName

This would only fix half of the problem, unless you're suggesting that
we use Clark notation *in the markup* as well, e.g.

<{http://www.w3.org/2000/svg}svg>
  ...picture of cat goes here...
</{http://www.w3.org/2000/svg}svg>


Ted
Received on Wednesday, 4 November 2009 21:37:39 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:45:02 UTC