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

RE: [good] Question about NS 1.1


RE:  [good] Question about NS 1.1
> > I _think_ it's because of QNames in attribute/element
> values, but it may
> > also have to do with canonicalization discussions.  I seem
> to remember
> > it being an issue for the long-ago XML Fragment
> discussions, but I'm not
> > sure.
>
> If that's the case then why not limit 'in-scope' to mean
> those namespaces
> used by the element, or it's direct element or attribute content?
>
> Wouldn't that staunch the bleeding?
>
The problem is that you don't know which namespaces are used, because
namespace prefixes can be used undetectably in content.

<xsl:value-of select="3 + my:function()" xmlns:my="some.uri"/>

If we had made it absolutely clear in the first place that namespace
prefixes could be used ONLY in element and attribute names, then we would
never have got into this mess. The solution adopted in the InfoSet model
(which got it from XPath) decided the opposite: that namespace prefixes were
significant and could be used anywhere they were in scope. Which works, but
brings its own set of problems.

The whole problem is caused by doing namespaces as a cheap and cheerful
bolt-on to XML without recognizing that it was an architectural change to
the foundations. Perhaps it is too late to fix now, but one reason I want to
see namespaces move into the core is that I'm fed up with attempts to patch
them with sticky-plaster.

Michael Kay
Software AG
home: Michael.H.Kay@n...
work: Michael.Kay@s...


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.