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

Re: QNames in attribute values


Re:  QNames in attribute values
Evan Lenz wrote:

> I completely disagree. As Mike Kay pointed out, there's no way for an XML
> processor to tell whether QNames are used in values. Consequently, all scope
> information, i.e. exactly where every xmlns declaration is and what prefix
> it uses, must always be passed to the application, regardless of whether
> it's needed or not.

But that's hardly a lot of information, is it?

> It's hard to believe that this was ever the intent of
> the XML Names recommendation.

Agreed.

> This practice blurs the distinction between
> the XML processor and the XML application,

Maybe. I think you can make a reasonable argument either way.

> If each layer had its own
> namespace declaration mechanism (one for element/attribute names, and one
> for application-specific content), then it would always be possible to throw
> away scope information as purely lexical detail.

Yes, but the end result would be that many applications would end up
reinventing xmlns attributes.

> I think there are still many people in the XML world (including members of
> W3C working groups) who happily use namespaces and who are oblivious to the
> fact that other specs are forcing [in-scope namespaces] on XML applications
> everywhere. These people are in for a harsh wake-up call.

How are they being "forced" on applications? DOM doesn't do this (which
I think is a mistake), and it's trivial to ignore this information in
SAX if your application doesn't need them.

Put another way, I don't care about entity usage. Should I also complain
that entities are being forced on me? (As it is, I had to write a bunch
of normalization code because DOM level 1 normalization was inadequate.
I probably had better things to do with my time, but I also figure
that's the price I pay for using generic processors. It's stil a lot
easier than writing a parser...)

-- Ron

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.