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

Default values for block and final

From: Arnold, Curt <Curt.Arnold@hyprotech.com>
Date: Mon, 11 Dec 2000 17:59:16 -0700
Message-ID: <B2C1451A181BD411B88A00E018C1C19C08A922@THOR>
To: "'www-xml-schema-comments@w3.org'" <www-xml-schema-comments@w3.org>
The Schema and DTD for Schema specify a default value of "" for block and final (but not in all uses) which will interfere with appropriate processing of blockDefault and finalDefault.  No default
should be provided so that not providing a block or final attribute can be distinguished from providing a value of "" which would indicate blocking nothing (anti #all)

<xsd:schema ... blockDefault="#all" finalDefault="#all">
	<!--  should be blocked and final  -->
	<xsd:complexType name="blockedAndFinal"/>
	<!--  should block nothing   -->
	<xsd:complexType name="unblockedAndNotFinal" block="" final=""/>
</xsd:schema>

These two complex types should have substantially different behaviors, however with the current DTD for Schema, they are indistinguishable.
Received on Monday, 11 December 2000 20:06:10 GMT

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