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

Re: Namespace Comments

  • From: james anderson <James.Anderson@m...>
  • To: "xml-dev@i..." <xml-dev@i...>
  • Date: Wed, 05 Aug 1998 04:16:56 +0000

disadvantage many namespaces
David Brownell wrote:
> 
> james anderson wrote:
> >
> > as an alternative,
> >
> >   xml:namespace="<prefix>:<uri>"
> >...
> 
> Consider:
> 
>         <MyApp:MyTag xmlns:MyApp="..." xmlns:OtherApp="...">
>                 <MyApp:xyzzy/>
>                 <OtherApp:plugh/>
>         </MyApp:MyTag>
> 
> Basically, many namespaces defined in one element.
> 

that's just a sugaring problem:

  xml:namespace="<prefix>='<uri>' prefix>='<uri>' ..."

(whereby the ':' in my initial query was ill advised)

the processing necessary to pick out arbitrarily named attributes is
sufficiently complex, that unary values cannot, in themselves, be an advantage.

other reasons?
wait a minute ... 
one 'advantage' which comes to mind is that the disjoint attributes allow one
to factor the declarations across physical entities and/or time.

? is that an advantage or a disadvantage?

are "people" really intending that (beyond binding of default namespaces on
the fly - during decoding) the after-the-fact binding/re-binding of an
attribute value have the effect of changing the namespace of a name and
thereby, among other effects, from the perspective of a "dom-based processor",
the 'type' of an already decoded element?

i've wondered, in the past, whether 'universal' names were really intended
denote stable types across documents, since although the name itself may be
stable, the side-effects of decoding two successive documents might well yield
two different element declarations.
using attributes to bind prefixes takes this a step further. 

is it intended that a processor simply tolerate bindings which leave an
element in an "unserializable" form?
should it constrain attribute bindings so that namespace bindings are somehow protected?
are the xmlns:? bindings to be treated as the property of the
parser/serializer whereby the latter is permitted to treat current values
hints only?

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.