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

Re: More namespaces perversion

  • From: David Brownell <db@E...>
  • To: xml-dev@i...
  • Date: Thu, 08 Oct 1998 10:34:39 -0700

importing namespaces xml
Peter Murray-Rust wrote:
> 
> There have been warnings about the complexity of registries - I assume that
> the xml-ea1 props file is a registry?

What do you mean by 'registry'?  Currently it's just the simplest
convention for associating XML Beans ("XObjects") with element names;
and since it's a flat namespace, it can't plug in to XML namespaces.

Sometimes when folk say "registry" they mean some global database.
I design such things out of systems every chance I get.


>	 Personally I don't yet care. I'd much
> rather see us try to make this work than simple wait around. I'm game for
> whatever URI<->functionality mapping we choose (as long as it's simple) so
> that we can at least get some experience.
> 
>         David's done it, I've done it - I assume there are others. It's part of
> XObjects and needs addressing soonest :-)

A draft I wrote up a while ago defined such bindings in XML syntax
something like this ... 

	<bindings>
		<!-- a set of namespace-specific bindings -->
		<namespace
			uri="http://www.example.com/xmlbeans/app1">
			codebase="xmlbeans.jar"
			>
		    <element name="reservation">
			<bean class="com.example.app1.Reservation"/>
			<!-- Bean tag actually lets you define properties
				and so on -->
			</element>
		    <!-- ... more element bindings in this namespace -->
		</namespace>
		<!-- ... more namespace-specfiic bindings -->
	</bindings>

That sketch omits two important features:  (a) importing bindngs
defined for other namespaces, (b) document-specific bindings, such
as for the "default" namespace or embedded in a document.

So for example a <?bindings uri="..."?> directive might be used to
associate a preferred set of bindings with a document.

- Dave

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.