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

Re: Element equivalence under XML Namespaces

  • From: "bryan rasmussen" <rasmussen.bryan@g...>
  • To: "Robin Berjon" <robin@j...>
  • Date: Thu, 17 Jan 2008 15:18:22 +0100

Re:  Element equivalence under XML Namespaces
> 2. XML or xml is reserved. I don't think xmlns is defined as a
> > namespace declaration anywhere but it seems sort of implied.
>
> Any casing of "xml" being reserved isn't necessarily namespaces
> related, it also allows the introduction of future features with
> specific semantics (as happened with the belated xml:id).
>
Yes I know, however if you have XML like this:

<a xmlns="http://example.org/namespacesexample"/>

what is that xmlns? In the XML spec as currently written I don't think
that is understood to be clearly a namespace [maybe it is somewhere in
there, I can just remember the : is specified but no other reference
is made as to the meaning of namespaces]?  But because starting with
xml is reserved that implies that xmlns has a W3C determined meaning.
W3C has published another document that describes what the meaning of
xmlns is, the namespace spec. So I would say that in the case of
'xmlns without :' then it may not be that the XML spec knows about the
existence of namespaces in that case but it would have to know that
there must be a specification that handled that special case or it
would have to assume that the above example was not well-formed.

Actually I am finding it awkward at this point to talk about what the
XML spec knows since being a spec it obviously knows nothing. This is
more the case of what an XML parser must know at a minimum, and it
must know - even without 'understanding' namespaces that xmlns is
allowed, and because it MUST know that little bit I suppose it becomes
reasonable for it to know just as well what xmlns 'means'.

Cheers,
Bryan Rasmussen


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