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

RE: Namespaces does *not* formally introduce "global attributes"

  • From: David Megginson <david@m...>
  • To: "XML Developers' List" <xml-dev@i...>
  • Date: Fri, 5 Feb 1999 09:07:06 -0500 (EST)

RE: Namespaces does *not* formally introduce "global attributes"
Mark Birbeck writes:

 > Reminds me of a question I had a while back: what happens to a perfectly
 > acceptable  XML 1.0 document run through an XML parser which has a
 > namespace processing module? This is, after all, valid XML 1.0:
 > 
 > 	<this:is:my:good this:is:an:attribute:called:a1="1" />
 > 
 > (As is:
 > 
 > 	<:::: :::="1" />
 > 
 > )

Exactly.  XML 1.0 remains in force, so for general-purpose XML
parsers, namespace processing needs to be an optional feature, enabled
at user discretion (as it is in Expat).  Dedicated tools for RDF, XSL, 
etc. will, of course, need namespace processing on.

Further to this topic, the following note does appear in the XML 1.0
spec:

Note: The colon character within XML names is reserved for
      experimentation with name spaces. Its meaning is expected to be
      standardized at some future point, at which point those
      documents using the colon for experimental purposes may need to
      be updated. (There is no guarantee that any name-space mechanism
      adopted for XML will in fact use the colon as a name-space
      delimiter.) In practice, this means that authors should not use
      the colon in XML names except as part of name-space experiments,
      but that XML processors should accept the colon as a name
      character.

In other words, you're allowed to use ':' for non-namespace purposes
but you're playing with fire if you do.


All the best,


David

-- 
David Megginson                 david@m...
           http://www.megginson.com/

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.