[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: Michael Kay <mike@saxonica.com>
  • To: xml-dev@lists.xml.org
  • Date: Mon, 08 Nov 2010 21:15:51 +0000

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

> QUESTIONS:
>
> 1. Are all XML processors namespace-aware? That is, do all XML processors understand the colon in a name as a delimiter between a namespace prefix and a local name?
I'm pretty sure if you look hard enough you can find a product that is 
(or that can be configured as) a non-namespace-aware XML processor.  But 
such a component isn't needed very often nowadays so you might have to 
look quite hard.
> 2. Are there XML processors that are namespace-unaware? That is, are there XML processors that treat colons as just another character?
Isn't that the same question?
> 3. Is namespace checking (checking that each prefix is bound to a namespace) a separate activity from XML checking?
Yes.
> Is there such a thing as a namespace processor? If so, are XML instance documents first checked by an XML processor and then by a namespace processor:
>
> XML instance document -->  XML processor -->  namespace processor
The namespaces Rec doesn't choose to use the term "namespace processor"; 
rather it describes namespace processing as a task optionally performed 
by an XML processor. But it's certainly something that could be done as 
a separate activity, just as validation can.
> 4. When we talk about an "XML processor" do we really mean XML processor + namespace processor"?
Depends who's talking. Most people don't talk about XML processors, they 
talk about XML parsers.
> 5. Consider the task of checking that "ex:" is bound to a namespace. Is that an XML processor task? Or, is that a task for a higher-level application; e.g., a namespace processor?

See above
> 6. If the ex in<ex:Comment>  is not bound to a namespace, is that really an XML well-formedness error?
No, it is a violation of namespace-well-formedness.

Michael Kay
Saxonica


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