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

Re: Namespace Prefix should be Purely Convienience

  • From: Jim Amsden <jamsden@u...>
  • To: <xml-dev@i...>
  • Date: Wed, 9 Sep 1998 14:37:50 -0400

webdav namespace prefix
Response below in <jra> elements.





owner-xml-dev@i... on 09/09/98 02:05:30 PM
Please respond to mct@f...
To: xml-dev@i...
cc:
Subject: Namespace Prefix should be Purely Convienience



Jim Amsden <jamsden@u...>


jm> The semantics should be on the local name and the namespace name
jm> with the prefix being a notional convenience

I agree.  The prefix should be "purely notational convenience."
Which makes me say: "Give us a way to write element tags with namespaces
but bypassing the prefix."

So, instead of

 xmlns:FOO="someUniqueString"
<FOO:DATE>

we could just write
<"someUniqueString":FOO>
....
<jra>
This generally wouldn't be convenient as the namespace name might be long as
well as contain characters that are not valid in a tag name. The prefix is OK
as long as it doesn't mean anything. Note that it's a little strange for an
attribute to define something about the element tag name. That is, the prefix
is always used before it is defined. Perhaps the attribute should specify the
namespaces for the content of the element, not the element itself. The document
root doesn't need a namespace because when used in that context, there can be
only one instance.
</jra>

and be done with the problem of prefix collisions!

I wish Namespaces didn't try to be so helpful!

jm> Note that I'm not implying that tag names are the concatenation of the
jm> namespace name and the local part of the tag name as specified by
jm> WebDAV semantics, only that two elements with the same namespace name
jm> and local name are treated as the same element type.

If you say
 "two elements with the same namespace name
        and local name are treated as the same element type.",

isn't this saying that, operationally, the "effective ELEMENT tag name"
is the concatenation of the namespace string and the local tag name?
<jra>
Yes, that's probably true in most cases, and is the WebDAV convention (an
application dependent interpretation of namesapces in order to eliminate
ambiguity). However, a client application could use the constituent parts of
the name in any way it wanted and apply some additional semantics. Like
checking to see if the local name is in the namespace, verifying the namespace
exists in some context, etc. Some of these semantics would be handled by the
DTD anyway though. For example, checking that the namespace scopes a local name
is the same thing as ensuring the element is defined in a DTD and is redundant.
</jra>



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





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.