W3C home > Mailing lists > Public > xmlschema-dev@w3.org > July 2001

Error in finalDefault and simpleTypes

From: Jeff Rafter <jeffrafter@definedweb.com>
Date: Mon, 9 Jul 2001 12:12:42 -0700
Message-ID: <033d01c108ab$21735180$f181fea9@lazarus>
To: <xmlschema-dev@w3.org>
Cc: <www-xml-schema-comments@w3.org>
I was looking up the answer to Lionel's question and stumbled across what
appears to be a small problem wrt simpleTypes and the final attribute.  The
definition for the simpleType component makes a reference to finalDefault
(in the schema element) saying that the relevant set can be

"{extension, restriction, list, union}"

However this is not allowed within the schema element's component
description:

"finalDefault = (#all | List of (extension | restriction))  : ''"

It is also not allowed within the normative Schema at the end of the
structures document.  Ultimately the simple type for the finalDefault
attribute is a union of the values #all and the reducedDerivationControl
which allows only restriction and extension.  finalDefault is therefore
never allowed to have the values list or union.

Thanks,
Jeff Rafter
Defined Systems
http://www.defined.net
XML Development and Developer Web Hosting
Received on Monday, 9 July 2001 15:13:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:22 GMT