W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2010

Re: RE: phantom attribute?

From: Cheney, Edward A SSG RES USAR <austin.cheney@us.army.mil>
Date: Sat, 02 Oct 2010 06:49:17 -0500
To: David McBride <dmcbride@codeaurora.org>
Cc: xmlschema-dev@w3.org
Message-ID: <f712ff83153d7.4ca6d5ed@us.army.mil>
David,

Sorry I have been out of the loop since my last reply.  The second of my examples should serve as a solution for your needs.

The thing about defaults is that they do not offer any value towards the validation function of schema.  As you have discovered they may even represent an ambiguous factor.  Defaults are valuable for generating instance documents from a schema reference or for auto correcting an instance document absent of elements and attributes defined with defaults.  In this case it may be necessary to consider the primary intention of your schema to determine if stating a default best serves the function you are attempting to achieve for your organization.

Thanks,

Austin Cheney, CISSP
http://prettydiff.com/
Received on Saturday, 2 October 2010 11:49:51 GMT

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