W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > April to June 2000

mistake in example

From: Volker Renneberg <volker.renneberg@acm.org>
Date: Tue, 06 Jun 2000 10:47:54 -0400
Message-ID: <393D0F1A.F21B76B6@acm.org>
To: www-xml-schema-comments@w3.org
Hi!

I'm refering to the examples under "3.2 Qualified Locals" in [XML
Schema: Primer]. First there is an schema definition containing the
following:
   elementFormDefault="qualified"
   attributeFormDefault="unqualified"

Then there are two examples following of which the first one is correct.
In my eyes the second one is wrong: There you are declaring a default
namespace (xmlns="...") So both elements AND attributes are in that
namespace although the locally defined attribute "country" should be
unqualified (considerung attributeFormDefault="unqualified"). So this
example is actually no example for the given schema definition.

cu
Volker

-- 
Volker Renneberg              http://workaholic.studfb.unibw-muenchen.de
Bell Laboratories, Lucent Technologies    mailto:volker.renneberg@acm.de
Room 2c-402, 600 Mountain-Avenue
Murray Hill, NJ 07974, USA
Phone*work: +1-908-582-2430  home: +1-908-273-3876
Fax  *work: +1-908-582-5857
Received on Tuesday, 6 June 2000 10:48:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:12:47 GMT