[
Lists Home |
Date Index |
Thread Index
]
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
|