Re: [schema] Re: Forcing a certain document element

On Fri, Jan 12, 2001 at 11:54:28PM +0100, Eric van der Vlist wrote:
> IMHO, since namespaces are aimed to disambiguate element names, ns1:elt
> and ns2:elt should be considered as having a different semantic...

I agree.

> And if you import the definitions using unqualified types, you hide this
> since you get similar element names from different namespaces that are
> expected to have the same meaning !

I disagree :). While the tags don't carry the namespaces on them, they still
are from that namespace, and any processing that needs to care about
meanings will know that. (It could mechanically find out from the schema, if
necessary.)

> Wouldn't it be simpler to use a single namespace then ?

Then you have name collision issues instead of nice encapsulation.

Granted that there is a rather serious disadvantage in going without global
elements, since there are schema features that require global elements :(
Having unqualified documents be incompatible with those features seems not
quite right to me though. ?


Robert Braddock

Received on Friday, 12 January 2001 20:12:49 UTC