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

Re: Global/Local attributes


local attribute
In a message dated 8/1/2002 8:36:12 PM Central Daylight Time, dareo@m... writes:


What is broken is the existence of a default namespace. Further mangling
Namespaces in XML to accomodate this mistake is unwise and borders on
foolishness.


I disagree. What is broken is the possibility of local naming, where any namespaces are used. Or rather, what XML Schema seems to call unqualified names.

This appears *all* the time in XML Schemas, where a locally named XML Schema attribute is intended to be part of the XML Schema namespace because the element containing is. This is just wrong. Where "xsd" has been declared as a prefix mapped to the XML Schema namespace uri, this is used for elements, but *not* for attributes, which are supposed to MAGICALLY be treated as being part of the XML Schema namespace. (Some "XML Schema" tools apparently break if "xsd" is used as a prefix for XML Schema attributes, which is even worse.)

Default namespaces are great, because, in contrast to local naming, the tags are declared *explicitly* to be part of a namespace. To be precise, what is broken is the possibility that there is any ambiguity regarding a locally named/unqualified named attribute. To me, no matter what the namespace of its parent element, if an attribute is given with no namespace prefix, it is part of the default namespace, if one has been declared, or it is *locally named*. There should be no possibility for an attribute to automatically take on the namespace of its element.

Jim

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.