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

Re: To namespace or not to Namespace ....

  • From: Andrew Welch <andrew.j.welch@gmail.com>
  • To: Uche Ogbuji <uche@ogbuji.net>
  • Date: Wed, 7 Apr 2010 22:55:20 +0100

Re:  To namespace or not to Namespace ....
>> >> You can't go far wrong if:
>> >>
>> >> - You pick a namespace that will never change: don't use dates, or
>> >> words like 'proposed' or 'beta', or embed version information
>> >> - You always use a prefix
>> >> - You tell the team to always use an XML parser to read the XML, and
>> >> an XML writer to serialise the XML, and never ever process XML as a
>> >> string
>> >
>> >
>> > Ha!  Just Ha!
>> >
>> > You probably need to add about 100 items to your list.
>> Come on then, list them, it all helps.
> I don't have the time to re-hash the thousands of messages on this list,
> which would easily yield you your list of 100, nor the thousands of messages
> on the W3C list that was set up to address the issues of syntax/semantic for
> namespace URLs, which would easily give you another 100.  I regret that I
> have an full work day.  You have the list archives.

I'm talking about some simple advice for a relatively pain free
introduction of namespaces that covers 99% of cases.

You are talking about an expert guide - 2 prefixes for the same
namespace, 2 namespaces with the same prefix... they are edge cases
(where edge == don't exist in the real world)

After having exactly this problem at the last few contracts (getting a
team of non-xml developers to process namespaced xml) the same issues
arise each time, which can be avoided if you do the things I've
mentioned.  More things can be added, such as explaining that the
namespace url doesn't have to point to anything, but the aim is to
keep it simple.

I don't have a problem with namespaces, neither do most people after
some exposure to them and some simple tips.

Andrew Welch
Kernow: http://kernowforsaxon.sf.net/

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


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.
First Name
Last Name
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.