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

RE: Namespaces, schemas, Simon's filters.

  • From: Michael Brennan <Michael_Brennan@a...>
  • To: 'Ronald Bourret' <rpbourret@r...>, xml-dev@l...
  • Date: Fri, 24 Aug 2001 17:33:45 -0700

RE: Namespaces
> From: Ronald Bourret [mailto:rpbourret@r...]

<snip/>

> For me, the difference was that I was absolutely convinced of the
> necessity for namespaces, while I'm not convinced of the necessity of
> the "new namespaces" imposed by local element types. In some 
> ways, this
> is odd, as the work I do (mapping databases to DTDs) could 
> benefit from
> them.

I'm just catching up on this thread, now, and I have to say it has been
enlightening. Upon reviewing the insightful comments on this thread -- and
re-reading the namespaces spec to see for myself that local element types do
indeed contradict that spec (although it only contradicts one phrase in the
spec) -- I am myself now questioning the necessity of local element types. I
agree with your sentiments; I think namespaces are a necessity. However, I
am also gravitating toward the far simpler treatment of names that the
namespaces spec gives us versus that of XML Schema. Yes, one can argue there
is utility to local elements, but does that utility justify the extra
complexity and the contradictions between W3C specs it has introduced? I
can't think of a single use case offhand that doesn't simply boil down to a
desire for a bit of syntactic sugar or wanting to reuse brief tag names. Is
this really warranted?

> One other question: when the namespaces spec came out, it was
> immediately obvious to me what was broken and how to fix it. Does
> anybody have a clear idea of what things local element types 
> "break" and
> how to fix them?

Not directly. But I think it is interesting to consider Rick Jelliffe's
analysis of the motivation behind this
(http://lists.xml.org/archives/xml-dev/200108/msg00842.html). The
anti-attribute bias of XML Schema did pose problems for us. We have been
using integration APIs that use attributes to differentiate different
messages types. So the following quote from Rick strikes close to home for
us:

    Why is containment more useful than subclassing
      line[@class="music"] and line[@class="graphics"]
    or specialization
      line[@type="multisegment"] and line[@type="single"].   
    This kind of need is much more common than
    having uncoordinated development within one
    namespace.

We have had to create alternative integration APIs that use intermediate
elements instead of attribute values, and we have done so for no other
reason than to ensure that our integration APIs are expressible with XML
Schema.

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.