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

Namespace Applications

  • From: Paul Prescod <paul@p...>
  • To: "XML Developers' List" <xml-dev@i...>
  • Date: Sat, 06 Feb 1999 11:49:58 -0600

applications namespace
David Megginson wrote:
> <email>paul@p...</email>
> <company>ISOGEN</company>
> <a:origin>Canada</a:origin>
> <b:origin>University of Waterloo</b:origin>
> </member>
>
> ...
> 
> The advantages of being able to come up with globally-unique names
> should be obvious:

Actually it isn't to me. The problem is now you have <a:origin> and
<b:origin> element types but you don't know what to do with them. This is
the point I keep harping about: processing expectations. Clearly
<a:origin> is supposed to be mapped either to nothing or to
<david:CountryOfOrigin> and <b:origin> is to be mapped either to nothing
or to <david:GraduatedFrom>. It seems to me that information should not be
let into my information system until it is expressed in terms that my
information system is familiar with.

What that means is that these things should be shipped with either
architectural declarations or an XSL stylesheet that lets me locally
reinterpret them. If all you want to do is make unknown elements
"disappear" you can do that without namespaces also.

> A second major advantage of namespaces is the ability to reuse
> processing code.  If I have written an event-handler/subroutine/method
> to do something useful with an HTML <table> element, then I'd like to
> reuse that for *every* document type that happens to use the HTML
> table model, even if I don't know about the document type in advance.

I can think of a variety of non-namespace ways to handle this (including
the one you pointed out). Maybe I'm over-conservative but I will not
advise my customers to depend on the namespace mechanism until there are
facilities for validating and processing them intelligently. I mean even
the most XSL-sophisticated XML editor/formatter would not recognize your
namespace-prefixed HTML element if you changed the prefix because XSL
itself does not handle it. I mean there is leading edge and there is
bleeding edge....
-- 
 Paul Prescod  - ISOGEN Consulting Engineer speaking for only himself
 http://itrc.uwaterloo.ca/~papresco

"Remember, Ginger Rogers did everything that Fred Astaire did,
but she did it backwards and in high heels."
                                               --Faith Whittlesey

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/ and on CD-ROM/ISBN 981-02-3594-1
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.