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

Re: Pragmatic namespaces

  • From: Michael Ludwig <mlu@as-guides.com>
  • To: XML Developers List <xml-dev@lists.xml.org>
  • Date: Thu, 06 Aug 2009 19:32:41 +0200

Re:  Pragmatic namespaces
Richard Salz schrieb:
> My proposal: only allow setting the default prefix, as in
>       xmlns='....'

> The drawbacks are that you cannot mix attributes from a different
> namespace

Isn't that pragmatic to the point of being a showstopper by breaking
compatibility?

> and that if you embed clumps from xmlns A inside B, a lot, you might
> get more verbose, with the emphasis on might.

Some people, including myself, tend to do this quite a lot, and hence
feel inclined to apply s/might/will/.

In fact, from a usability point of view, I find the current xmlns/prefix
approach not too bad, especially if you declare all prefixes at the top
and don't mess around by reassigning prefix horses in mid-stream (pun
attempted and intended).

My reason for complaint about the current situation, which is apparently
shared by some other people, as users of XML, is just that the namespace
URIs are more complicated than necessary without providing any
discernible benefit as compensation.

More authoritative voices, however, presumably dwelling on their
experience as implementors of standards, have pointed out that it's
actually those innocuous-looking prefixes that cause a lot of problems
in the data model; and while not being anything of an implementor
myself, merely by reading a document where prefix horses are assigned
and reassigned in mid-stream while my eyeballs and brains have trouble
not submerging in the sea of tags, I can imagine that implementing a
high-speed boat for such treacherous waters isn't exactly kindergarten.

http://lists.xml.org/archives/xml-dev/200907/msg00055.html

http://lists.xml.org/archives/xml-dev/200907/msg00104.html

-- 
Michael Ludwig


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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-2011 All Rights Reserved.