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

Re: Enlightenment via avoiding the T-word

  • From: Ronald Bourret <rpbourret@r...>
  • To: xml-dev@l...
  • Date: Tue, 28 Aug 2001 13:43:42 -0700

what s the t word
This perfectly illustrates the conundrum of whether local element
(names) are a good thing. In a database table (or Java class), column
(variable) names have local scope. If you need to reference them from
outside, you qualify them with the table (class) name. That is, Name
becomes Customer.Name.

In XML, what's the scope of a name? It's really hard to say. When you
look at the whole document, names have global scope. When you look at
individual elements, names have local scope. Both points of view are
reasonable and valid.

Furthermore, XML names aren't quite comparable to column or variable
names because there is nothing in SQL or a programming language quite
like the DOM or cut-and-paste in a text editor. That is, if I access a
column or variable, the surrounding technology forces me to be
unambiguous about the names. Nothing in XML or XML technology does this.

-- Ron

David Hunter wrote:
> 
> [Sorry for the HTML in the previous post.  Hopefully this one will be
> better.]
> 
> Yes, we do alias in our SQL queries.  In fact, we alias everything; it helps
> to break that tie between business layers and data layers.  And yes, there
> may be cases where I need to get the "name" column from the "customer"
> table, and the "name" column from the "person" table, all within the same
> query, and alias them "CustomerName" and "PersonName" respectively.  But
> this is only for the benefit of processing the data more easily.  There will
> be other processing that we need to do which doesn't need to do this.  There
> is no problem, from the database, telling which "name" is which, because
> each is in it's own table.
> 
> To me, and this analogy is in danger of getting less and less like the
> problem at hand, performing this type of query, and getting back a result
> set, would be like taking one XML document (or a couple of XML documents),
> and transforming it via XSLT to another XML document - some
> elements/attributes/etc. may get renamed, but that doesn't mean that the
> initial XML document is structured in a bad way - it just solved a different
> problem than the new one does.

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.