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

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>
xml schema styles

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.

xan
Received on Thursday, 8 September 2005 15:34:47 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
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-2007 All Rights Reserved.