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

Re: [good] Question about NS 1.1


copy 1.1 til ns

Ronald Bourret wrote:
> Joe English wrote:
> > I'm ambivalent about this.  QNames in content sound like a
> > Really Bad Idea on the face of it,  [...]
>
> The problem isn't QNames in content. It's how you declare
> prefix=>namespace mappings.

Right; by "the QNames-in-content problem" I mean "QNames in
element content and/or in attribute values which are interpreted
according to the local namespace environment as defined
by the W3C 'Namespaces in XML 1.0' REC".  Since this problem
comes up a *lot*, a shorthand expression is needed :-)


> One way to do this is to define
> application-specific mapping mechanisms, such as those that allow the
> declarations only on root elements or with specific child elements such
> as:
>
>    <Namespace Prefix="foo" URI="http://www.foo.org/" />
>
> The problem with these is that they inherit the problem that dogged the
> original namespace PI: code that is unaware of the namespace declaration
> mechanism can't safely copy fragments.

The other problem is that it (often) forces document creators to
include multiple namespace declarations for each prefix/URI
mapping.  It doesn't really save much work for document consumers
either, since they would just have to maintain an application-specific
namespace environment as well as the REC-xml-names one.
I want *fewer* namespace-related things to keep track of, not more!


--Joe English

  jenglish@f...

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.