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

Re: Lesson Learned: Use namespaces for both markup anddata

  • From: Michael Ludwig <milu71@gmx.de>
  • To: xml-dev@lists.xml.org
  • Date: Wed, 12 Aug 2009 00:52:32 +0200

Re:  Lesson Learned: Use namespaces for both markup anddata
Glidden, Douglass A schrieb am 11.08.2009 um 17:44:19 (-0400):
> I have to say that, all in all, I don't understand why working with
> namespaces is supposedly so painful, so I've stayed out of this
> discussion; however, as an "application developer" who works with
> quite a bit of XML data, I have to disagree with you here.

Working with namespaces presents three or more burdens of varying
importance:

(1) It may be painful for novice users, until they figure it out.

(2) It frequently imposes a certain tedium on the reader and sometimes
traps even experienced users in silly errors because the established
convention of choosing unnecessarily complicated URIs or URLs to
identify namespaces is so horrible:

http://markmail.org/message/3yq7mei2bzbnzmbs

(3) It is a problem in the data model and in implementations because
of the context dependency that the mere possibilty of namespace
declarations in mid-markup introduces:

http://markmail.org/message/utae2qaibwkky7gr
http://markmail.org/message/mciccvc4wtqwforo

Well, the novice will have to do some grokking as per burden (1).

As an XML user past the novice stage, I find the current system quite
okay, and prefixes even good as they tell me what namespace an element
belongs to. We should just start using friendlier namespace identifiers.
Then, burden (2) would be alleviated.

But it seems there is more to prefixes than meets the eye, they cause a
lot of complexity in the data model and limit your ability to transplant
nodes from one location to another. (3) Things could be made to work in
a simpler fashion. A hypothetical better system might benefit both users
and implementors.

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