W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2012

Re: XML Schema quiz on default values

From: C. M. Sperberg-McQueen <cmsmcq@blackmesatech.com>
Date: Fri, 24 Aug 2012 09:56:22 -0600
Cc: "C. M. Sperberg-McQueen" <cmsmcq@blackmesatech.com>, "Costello, Roger L." <costello@mitre.org>, "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>
Message-Id: <370C4F8B-1E16-409A-B88F-ED749740F53B@blackmesatech.com>
To: Daniel Dui <daniel.dui@gmail.com>

On Aug 24, 2012, at 6:33 AM, Daniel Dui wrote:

> Roger et al., thanks for the clarification.
> 
> I have used XML Schema for a long time and this is definitely a dark corner of the specs.
> 
> I always warn people about using default values and often recommend not using them. This non-obvious defaulting behavior looks to me like another reason why many schemas should avoid using default values.

I'm puzzled.  The behavior "Empty element gets the default" 
seems straightforward enough to me.

Can you clarify in what way you find the behavior non-obvious?

-- 
****************************************************************
* C. M. Sperberg-McQueen, Black Mesa Technologies LLC
* http://www.blackmesatech.com 
* http://cmsmcq.com/mib                 
* http://balisage.net
****************************************************************
Received on Friday, 24 August 2012 15:57:16 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 24 August 2012 15:57:16 GMT