[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Localisation: Character Encodings & RDBMS,Unicode->UTF-8 withRound T

  • From: james anderson <james.anderson@m...>
  • To: Tim Bray <tbray@t...>
  • Date: Thu, 31 Aug 2000 12:37:06 +0200

couterintuitive


Tim Bray wrote:
> 
> At 12:58 PM 30/08/00 -0400, Frank Boumphrey wrote:
> >Section 2 of the Namespaces rec declares
> ...
> >ie
> >  <foo:a  xmlns:foo="">In the foo namespace</foo:a>
> >is illegal
> >Can anyone tell me the reasoning behind this?
> 
> Yes, that's illegal.  My memory is fuzzy, but one of
> the important reasons is that if you have a default
> namespace <x xmlns="default-ns-uri"> and then you
> want to unset the default so there is none, the
> obvious way to do that is <subX xmlns="">, which
> doesn't mean the default ns is "", it means that
> there isn't a default ns.  It would be distinctly
> weird if the semantics of <x xmlns=""> were wildly
> different from <x xmlns:foo="">.

Which, in turn, raises the question, why should they be different? If
the reasoning has to do with "the default namespace which isn't", then
one might ask what purpose that anomaly serves and argue that one should
instead stipulate the existence of a namespace with the name "", to
which not only the default namespace could be associated (by the form
xmlns=""), but also to which any given prefix could be bound (by a form
like xmlns:foo=""). the result is simpler to understand and easier to model.

> 
> Also, the WG was (quite rightly, as history has
> shown) very nervous about relative URIs as
> namespace names, and "" only makes sense as a
> relative name.

?
While I can follow, that one might assert that a form like xmlns:foo=""
would effect a binding for the prefix "foo" to some namespace which is
bound in a form in which, for example, an external parsed entity has
been included, for example, the default namespace, the mechanism is
couterintuitive and problematic - without regard to the "" value
specified for the namespace name.


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.