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

Re: Global or shared namespace?


dom setting the namespace
> Can I plead confusion here?

Wouldn't be the first time someone did that on
xml-dev with respect to namespaces ... wanna
take bets about it being the last time?  ;-)


> 1) What is meant by "xmlns isn't a namespace at all"?

See "Namespace Constraint:  Prefix Declared" in the
namespaces REC (section 4).  Last sentence:  "The
prefix xmlns is used only for namespace bindings and
is not itself bound to any namespace name."

The story I got when I pushed on that was that it was
intended to be just a magic token.  Perhaps if it were
to be viewed as a namespace, people would expect
some formal definition, and to be able to add elements
and attributes to it?  (Just guessing, I don't know.)

    <xmlns xmlns='http://www.w3.org/2000/xmlns/' 
            xmlns:my='http://www.example.com/xmlns'>
        <element name="my:element">
            <!-- what goes here? -->
        </element>
        <attribute name="my:attribute">
            <!-- what goes here? -->
        </attribute>
    </xmlns>

> 2) What is the incompatibility? Is the question one of how "no
> namespace" is represented in the info set?

Nope -- how namespace declarations are represented.
The text above places some requirements on representations.

For "no namespace" -- didn't we just recover from a discussion,
not very long ago, about W3C Schemas and how "local"
elements, not in a namespace ("no namespace"), are special?


> 3) How does DOM L2 not conform to the NS Rec?

It puts namespace declaration attributes into a specific
namespace, contradicting a requirement (in the text
quoted above) in the namespace REC.


I hope that helps to unconfuse you ... :)

- Dave




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.