[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

Richard Tobin  wrote:

> >2) Joe English's sanity breakdown (which is actually genius...)
>
> I'm too lazy to go into this in detail, but there are reasonable uses
> for some of the "insanities" he describes, such as combining two
> documents that happen to use the same prefix.

In this case, I'd recommend remappping the prefixes in the
secondary document to match the namespace environment of
the primary document.  (If neither is "primary" or "secondary",
just pick one arbitrarily.)

Of course this strategy won't work if there are QNames-in-content;
the only way to maintain sanity in this scenario is to use XInclude
(or an application-specific moral equivalent, e.g. <xsl:import>).

> >3) The need to undeclare in scope namespaces (linked to 1?)
>
> I don't think this adds any significant complexity to namespace
> processing.  If it had been present in the original spec no-one would
> have thought twice - it's a natural feature that was omitted (I think
> Tim Bray - one of the original authors - has described its omission as
> "a bug").

I tend to agree; 'xmlns:foo=""' is not a bad idea.  I just
think the motivation for adding it in a new revision of REC-xml-names
is wrong.   "Undeclaring" an unused namespace prefix should have
no effect whatsoever on the interpretation of the document;
applications which require this facility are just as bad
as those which depend on the order of attribute value specifications
in start-tags.


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