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>

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.


Austin Cheney, CISSP
Received on Saturday, 2 October 2010 11:49:51 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:18 UTC