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

Re: What's wrong with namespaces? Some observations and sugges

  • From: Dimitre Novatchev <dnovatchev@gmail.com>
  • To: Michael Sokolov <sokolov@ifactory.com>, xml-dev@l...
  • Date: Sun, 5 Dec 2010 17:24:00 -0800

Re:  What's wrong with namespaces? Some observations and sugges
On Sun, Dec 5, 2010 at 4:57 PM, Michael Sokolov <sokolov@ifactory.com> wrote:
> I would like the namespace-sensitivity of
> select="table"
> to be the same as the namespace-sensitivity of
> select="./table"
> but I think your proposal for the latter. Dimitre, would require that the
> table children selected by the ./table expression have the same namespace as
> the current node, whereas Michael's previous post, which you seemed to be
> endorsing (?), would have the first expression above select table children
> in any namespace.
> I'm not sure which solution is best, but I do know I want consistency

Both of these have a verbose and abreviated variant.

I don't believe that the abreviated variant that overgenerates is
really abreviated -- because one will need additional expression parts
in order to get the elements that are *exactly* wanted.

As a learning exercise it is good to have people initially start using
the full form and then gradually to start using the abreviated form as
they know what they want. There is motivation in learning to
transition from long to short form of expression.

On the contrary, whenever people learn first the short form, the
motivation to learn and use something longer is certainly not big, if
positive at all.

So, if the short form overgenerates, as is the case with what Michael
Kay defined in his last message, people will have more difficulties
learning to use more selective expressions, because they would be

This is the reason I am proposing abbreviations that do not overgenerate.

Dimitre Novatchev
Truly great madness cannot be achieved without significant intelligence.
To invent, you need a good imagination and a pile of junk
Never fight an inanimate object
You've achieved success in your field when you don't know whether what
you're doing is work or play

[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.