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

Re: My report on experiments with unused namespaces

  • From: Amelia A Lewis <amyzing@talsever.com>
  • To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
  • Date: Wed, 15 Sep 2010 14:03:41 -0400

Re:  My report on experiments with unused namespaces
Heyo ...

On Wed, 15 Sep 2010 13:35:59 -0400, Costello, Roger L. wrote:
> [Definition] Unused namespace: a namespace in an XML instance 
> document which is not used in any element or attribute name.

[snip]

How is this different from an "unused element".

Definition: an unused element is an element containing an ID attribute 
which is not referenced by an element with an IDREF attribute elsewhere 
in the document.

Or maybe we should define this as an "unused ID"?

In short: I don't see the point.  A namespace declaration is merely a 
particular form of attribute use which defines a certain sort of 
information.  In the best of all possible worlds, a namespace would 
only be defined when it was needed to scope an element or attribute use 
('scuse, I need to go cultivate my garden ...), but since multiple 
prominent uses of namespaces use the scoping mechanism for the 
*content* of attributes and elements, there is no way for a processor 
to know whether a namespace declaration is significant or not.

<a:b xmlns:a="b" xmlns:new="xyzzy">
  <a:c result="nothing happens">new:speak</a:c>
</a:b>

Question: is the declaration "xmlns:new" used or unused in this 
document?

Amy!
-- 
Amelia A. Lewis                    amyzing {at} talsever.com
The Bible contains six admonishments to homosexuals and three hundred 
sixty-two admonishments to heterosexuals.  That doesn't mean that God
doesn't love heterosexuals.  It's just that they need more supervision.


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.