W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2005

Re: Schema styles...

From: Xan Gregg <xan.gregg@jmp.com>
Date: Thu, 8 Sep 2005 11:34:36 -0400
Message-Id: <5cfc6c5473c5c3c5e4c822b2b097caa6@jmp.com>
Cc: XMLSchema-Dev <xmlschema-dev@w3.org>
To: Gary Maltzen <xml-schema@mwwm.net>

On Sep 8, 2005, at 3:19 AM, Gary Maltzen wrote:
> When defining a Schema it seems to me that most of the context is in 
> the XML-Schema namespace, so I keep wondering why there seems to be a 
> preference for qualifying the XML-Schema namespace rather than the 
> defined namespace.
> Is there some significant difference in the result?

The only technical reason is in defining a schema with no namespace. In 
that case, you must use a prefix for the XML Schema namespace so 
unprefixed references like type="MyType" don't resolve to the XML 
Schema namespace.

Since the explicit namespace prefix style covers 100% of the cases and 
the default namespace style covers *only* 99%, many prefer using the 
former style as a best practice.

Received on Thursday, 8 September 2005 15:34:47 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:08 UTC