[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: namespaces redux (was: Re: [XML Schema]Here's ho
>> On 10/15/2012 12:09 AM, Liam R E Quin wrote: >> (in fact, best practices uses of W3C namespaces are not, ultimately, so > bad). Here are some namespace best practices for someone about create their own markup: 1. Always use a prefix, never change the default namespace. 2. Choose a namespace that will never, ever change - eg don't include version numbers or dates 3. Avoid using URLs, the globally unique benefit is far outweighed by the confusion cost 4. Keep it short, XPath 3.0 can include the namespace directly in the xpath 5. Use the standard prefixes for existing namespaces 6. Always declare all the namespaces on the root element The goal is to help consumers of the xml avoid all the usual pitfalls around namespaces. Some potentially controversial ones in there... :) -- Andrew Welch http://andrewjwelch.com
[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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|