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

Re: Back to basics: a few questions about colons in XMLnames

  • From: Amelia A Lewis <amyzing@talsever.com>
  • To: xml-dev@lists.xml.org
  • Date: Mon, 8 Nov 2010 15:55:58 -0500

Re:  Back to basics: a few questions about colons in XMLnames
Errrrrrrr ...

On Mon, 8 Nov 2010 20:26:17 +0000, Stephen Green wrote:
> How about several colons being allowed in an element name?
> The XML spec seems to permit it as XML but is it expressly
> disallowed for namespaces?

The XML specification reserves colon.  So it can't be used in a name, 
unless another specification on top of XML permits that usage.

The only specification that permits the usage of colon in an XML name 
is the namespaces recommendation, which uses the colon, in the xmlns 
"attribute" (namespace declaration) to define the bound prefix 
(xmlns:prefix="uri"), and in qualified names to separate prefix from 
name (prefix:name).

So: a parser that does not support namespaces in XML *should* (if it 
supports XML) mark an otherwise well-formed XML document as ill-formed 
if it encounters a (or any number of) colon(s) in an element or 
attribute name; a parser that does support namespaces should be keeping 
track of declarations and must recognize a namespace-ill-formed 
document as such.

Amy!
-- 
Amelia A. Lewis                    amyzing {at} talsever.com
I know you don't want either to give or to take.  You've tried being
the giver, and you've found that the giver is always fooled.  And you
won't be the taker, because that's very difficult, and because you know
that the taker always ends by hating the giver.  You don't want ever
again to have to depend for happiness on another person.
                -- Lord Peter Wimsey


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