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

Re: RE: Namespaces Best Practice

  • From: Jonathan Borden <jborden@m...>
  • To: Evan Lenz <elenz@x...>, Paul Spencer <paul.spencer@a...>,xml-dev@l...
  • Date: Thu, 20 Sep 2001 00:18:31 -0400

java syntax best practice
Evan Lenz wrote:

> Paul Spencer wrote:
> > I'm late coming to this thread, but am I the only one to disagree with
> point
> > 1? (I agree totally with 2.)
>
> This is a bit of a struggle for me too. One analogy would be the
programming
> practice that says "declare variables where you use them." Why have a
> namespace declaration at the top of the document, when you're only using
> that namespace at one isolated element in the middle of the document?

A namespace is much much more akin to a Java package than a variable. Indeed
package imports are so often declared right at the top of the file that I
honestly don't remember off the very top of my head whether this is part of
the actual Java syntax or rather a best practice universally employed.

Jonathan



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.