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

Re: XML ... simple building blocks, simple assembly mechanisms


color xml
I think this analogy is more like chameleon schemas, in which there is
namespace coercion (here there would be "color coercion"). Of course,
you could have a rule that causes the Blue blocks, when attached to Red
blocks, to retain their color. This would be the equivalent to
disallowing use of no-target-namespace schemas in your schema design
rules.

Back to the original question of attributes and namespaces: I believe
attributes are equivalent to the color, texture, size, etc. of the
blocks, and namespaces could be equivalent to the manufacturer (let's
suppose they are not all Legos). Each block would have some type of
label (perhaps a faint indentation in the wood) that signifies the
manufacturer - roughly equivalent to the role that a namespace prefix
plays (realizing that namespace prefixes are just syntactic sugar and
are not passed to the Infoset...won't even go there ;)

Kind Regards,
Joe Chiusano
Booz | Allen | Hamilton
Strategy and Technology Consultants to the World

Jeff Rafter wrote:
> 
> > Is a namespace a "building block"?  Or, is a namespace simply more
> metadata
> > on a tag - analogous to coloring a Lego building block to distinguish it
> > from others?
> 
> I thought I agreed with this until I thought about the complexity of
> namespaces. To carry the analogy to the end you would have to support
> default namespaces. Essentially, this would be equivalent to building two
> separate structures out of Legos, a Red one and a Blue one, then by
> attaching Red one to the Blue one all of the Blue blocks would suddenly
> change to Red. I don't know if there is an equivalent to namespaces in the
> Lego Metaphor. Though, I would be very interested to see someone try to map
> Joe English's namespace breakdown to analogous Lego constructions. :-)
> 
> All the best,
> Jeff Rafter
> 
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
> 
> The list archives are at http://lists.xml.org/archives/xml-dev/
> 
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://www.oasis-open.org/mlmanage/index.php>

-- 
Kind Regards,
Joseph Chiusano
Associate
Booz | Allen | Hamilton

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.