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

RE: Rethinking namespaces, attribute remapping(wasRe:


idea behind namespaces
Hi Eric,

Eric said:

My point was not to put this old story back to light though but rather
to take a step backward and ask again the (generic) question of what
needs to be defined in a document as opposed to what should be defined
outside the document in schemas, mapping table, applications or whatever
is needed to "understand" the document.

I think that namespaces are a step in the direction of making documents
more autonomous: when I am using XLink I can recognize (assuming that
there is a consensus on the namespace) that xlink:href is a link without
needing other resources.

Didier replies:
You know what I will say, I just say it to recap. I think that yes, the
original idea behind the namespaces was that a document could be made
more autonomous (no external definitions like DTD) when consumed at
run-time. External definitions could be still used at design/validation
times. So behind namespaces we got these axioms
a) At run time, a document is self contained without any external
documents. The namespace URI was used as a name to make the namespace
unique for the processors). A document could be located at the other end
of the URI but this is sufficient and not necessary for any processing
at run-time.
b) Namespaces were designed to prevent name collision. The same keyword
could be used in two different domain languages and still be used in the
same document without ambiguity (at least not from the machine point of
view, maybe from the human point of view).

Xlink used namespaces and an inheritance mechanism to respect these
axioms also to provide, at run time, a way to identify - in a generic
way - links included in a document. At least, if a document contains two
domain languages, let's say SVG and XHTML, then, links would be easily
recognized by the sharing the same attributes. This would make the whole
document more coherent. Linkage is one of the most important feature of
the web, this is why a generic linkage domain language is so useful (in
addition to re-use).


Cheers
Didier PH Martin


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.